摘要: 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 阅读全文
posted @ 2018-06-06 21:12 Chestnut_Anne 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 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') 阅读全文
posted @ 2018-05-30 20:53 Chestnut_Anne 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-05-23 20:48 Chestnut_Anne 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 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(... 阅读全文
posted @ 2018-05-16 20:09 Chestnut_Anne 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 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)... 阅读全文
posted @ 2018-05-09 20:21 Chestnut_Anne 阅读(214) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-04-19 20:45 Chestnut_Anne 阅读(0) 评论(0) 推荐(0) 编辑