摘要: l = ['Michael','Bob','Tracy'] l.append('Bob') l.pop() print(1) t = ('Michael','Bob','Tracy') scores = [95,85,75] d = {'Michael':95,'Bob':85,'Tracy':75} d['Bob'] = 82 d['Rose'] = 88 d.pop('Bob') .. 阅读全文
posted @ 2018-06-06 21:23 余君妍 阅读(100) 评论(0) 推荐(0) 编辑
摘要: fr=open('0530.txt',mode='r',encoding='utf-8') plaincode=fr.read() print('明文:'+plaincode) print('密文:',end='') for c in plaincode: print(chr(ord(c)+3),end='') fr = open('0530.txt',mode='r',enco... 阅读全文
posted @ 2018-05-30 21:31 余君妍 阅读(130) 评论(0) 推荐(0) 编辑
摘要: s=input('密文:') for c in s : print(chr(ord(c)-3),end='') stuNum='201709080003' print('年级是:'+stuNum[0:4]) print('专业编号是;+stuNum[4:9]') print('序号是;'+stuNum[-3:]) IDNo= '440105199909211926' print(... 阅读全文
posted @ 2018-05-23 21:01 余君妍 阅读(111) 评论(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() def dra... 阅读全文
posted @ 2018-05-16 21:31 余君妍 阅读(120) 评论(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) turtle.left... 阅读全文
posted @ 2018-05-09 21:12 余君妍 阅读(155) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.circle(50) turtle.circle(100) turtle.circle(150) turtle.done() import turtle turtle.up() turtle.goto(0,-50) turtle.down() turtle.circle(100) turtle.up() turtle.goto(0,-100)... 阅读全文
posted @ 2018-05-02 20:35 余君妍 阅读(126) 评论(0) 推荐(0) 编辑
摘要: while True: a = int(input('摄氏度转华氏度请按 1\n 华氏度转摄氏度请按 2\n退出请按 3\n')) if a == 1: c = float(input ('请输入一个摄氏温度')) f = c*9/5+32 print('摄氏{:.2f}的华氏为{:.2f}\n'. 阅读全文
posted @ 2018-04-25 21:41 余君妍 阅读(154) 评论(0) 推荐(0) 编辑
摘要: name1=input('please input one name') name2=input('please input another name ') picture=input('please input something') print('{}打开了{}发来的图片,被里面的{}吓到了'. 阅读全文
posted @ 2018-04-18 21:10 余君妍 阅读(87) 评论(0) 推荐(0) 编辑