摘要:
l = ['Michael','Bob','Tracy'] l.append('Bob') l.pop() print(1) t = ('Michael','Bob','Tracy') scores = [85,65,55] d = {'Michael':85,'Bob':65,'Tracy':55 阅读全文
摘要:
fr = open('lyx.txt',mode='r',encoding='utf-8') lyx = fr.read() print('明文:'+lyx) print('密文:',end='') fw = open('penguin.txt',mode='a',encoding='utf-8') 阅读全文
摘要:
plaincode=input('请输入明文:') print('密文:',end='') x=ord('a') y=ord('z') for i in plaincode: if x<= ord(i)<=y: print(chr(x+(ord(i)-x+3)%26),end='') else: print(i,end='') stuN... 阅读全文
摘要:
import turtle turtle.setup(600,400,0,0) turtle.bgcolor('red') turtle.color('yellow') turtle.fillcolor('yellow') def mygoto(x,y): turtle.penup() turtle.goto(x,y) turtle.pendown() mygoto(... 阅读全文
摘要:
import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(90) # 花蕊 turtle.fillcolor("red") turtle.begin_fill() turtle.circle(10, 180) turtle.circle(25, 110)... 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文