05 2018 档案

摘要:fr = open('1.txt', mode='r', encoding='utf-8') plauncode=fr.read() fr.read() fw = open('1-1.txt', mode='a', encoding='utf-8') for c in plauncode: fw.write(chr(ord(c)+1)) fw.close() fr = open('... 阅读全文
posted @ 2018-05-30 20:45 涂文君 阅读(96) 评论(0) 推荐(0)
摘要:id='440801199910060620' area=id[0:6] birthday=id[6:14] sex=id[-2] print(area,birthday,sex) if(int(sex)%2==0): print('girl') else: print('boy') for i in range(12): print(9800+i,chr(98... 阅读全文
posted @ 2018-05-23 19:57 涂文君 阅读(105) 评论(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 draw5... 阅读全文
posted @ 2018-05-16 20:16 涂文君 阅读(131) 评论(0) 推荐(0)
摘要:import turtle turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.right(144) turtle.end_fill() turtle.... 阅读全文
posted @ 2018-05-09 20:35 涂文君 阅读(249) 评论(0) 推荐(0)
摘要:number=20 print('猜数字游戏!') while True: a=int(input('请输入数字:')) if anumber: print('猜的数字大了') else: print('猜对了!') break import turtle turtle.circle(75) turtle.done()... 阅读全文
posted @ 2018-05-02 20:30 涂文君 阅读(93) 评论(0) 推荐(0)