摘要: 环境和国家 阅读全文
posted @ 2018-06-20 20:55 赵敏婷 阅读(71) 评论(0) 推荐(0) 编辑
摘要: l=['eat','sleep','drink'] l.append('study') l.pop() print(l) t=('eat','sleep','drink') scores=[10000,1000,100] d={'eat':10000,'sleep':1000,'drink':100} d['sleep']=999 d['study']=10 d.pop('sleep') 阅读全文
posted @ 2018-06-06 21:13 赵敏婷 阅读(291) 评论(0) 推荐(0) 编辑
摘要: fr=open('马骝.txt',mode='r',encoding='utf-8') plaincode=fr.read() fr.close() fw=open('大马骝.txt',mode='a',encoding='utf-8') for c in plaincode: fw.write(chr(ord(c)+3)) fw.close() import turtle ... 阅读全文
posted @ 2018-05-30 21:43 赵敏婷 阅读(112) 评论(0) 推荐(0) 编辑
摘要: idno ='440000199804024147' 地区=idno[0:6] 生日=idno[6:14] 性别=idno[-2] print(地区,生日,性别) if(int(性别) % 2 == 0): print('girl') else: print('boy') for i in range(12): print(9800+i,chr(9800+i)) s... 阅读全文
posted @ 2018-05-23 21:21 赵敏婷 阅读(113) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.setup (600,400,0,0) turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') def mygoto(x,y): turtle.penup() turtle.goto(x,y) turtle.pendown(... 阅读全文
posted @ 2018-05-17 00:27 赵敏婷 阅读(142) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.setup(600,400,0,0) turtle.bgcolor('black') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() turtle.penup() import turtle turtle.bgcolor('black')... 阅读全文
posted @ 2018-05-09 20:38 赵敏婷 阅读(183) 评论(0) 推荐(0) 编辑
摘要: fangjia= 7 while True: import turtle turtle.begin_fill() turtle.circle(30) turtle.color('yellow') turtle.end_fill() turtle.circle(75) turtle.penup() turtle.color('black') turtle.goto(100,0) ... 阅读全文
posted @ 2018-05-02 21:43 赵敏婷 阅读(157) 评论(0) 推荐(0) 编辑
摘要: a=input('1.摄氏转华氏 2.华氏转摄氏') if a =='1': f=float(input('请输入华氏温度')) c=5/9*(f-32) print('{}华氏度转为摄氏度是{}'.format(f,c)) else: c=input('请输入摄氏温度') f=float(c)*9/5+32 print('{}摄氏温度转为华氏温度... 阅读全文
posted @ 2018-04-25 21:28 赵敏婷 阅读(260) 评论(0) 推荐(0) 编辑
摘要: a=input('请输入第一个数:') b=input('请输入第二个数:') sum2=int(a)+int(b) print('两个数的和是:{}'.format(sum2)) a=input('请输入摄氏温度') sum2=int(a)*9/5+32 print('华氏度{}'.format(sum2)) a=input('请输入华氏温度') sum2=5/9*(int(a... 阅读全文
posted @ 2018-04-18 23:43 赵敏婷 阅读(106) 评论(0) 推荐(0) 编辑
摘要: name1=input('请输入一个名字') name2=input('又输入一个名字') name3=input('再输入一个名字') print('刚才{}打车,一上车就听到一个{}说,既然你们急着上路。我以为这是什么导航,我就说这是什么导航,{}说,不是我在听小说'.format(name1, 阅读全文
posted @ 2018-04-18 21:07 赵敏婷 阅读(102) 评论(0) 推荐(0) 编辑