05 2018 档案

摘要:fr = open('12333.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('12333.txt',mode='... 阅读全文
posted @ 2018-05-30 21:15 刘海茵 阅读(130) 评论(0) 推荐(0)
摘要:id ='441323199901153026' 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') print('+') print(chr(9800)) print(... 阅读全文
posted @ 2018-05-23 20:56 刘海茵 阅读(134) 评论(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 阅读全文
posted @ 2018-05-16 20:36 刘海茵 阅读(128) 评论(0) 推荐(0)
摘要:import turtle turtle.setup(800,400,0,0) turtle.bgcolor('pink') turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forw 阅读全文
posted @ 2018-05-09 20:18 刘海茵 阅读(107) 评论(0) 推荐(0)
摘要:import turtle turtle.circle(100) turtle.circle(90) turtle.circle(80) turtle.circle(70) turtle.circle(60) turtle.color('red') myNumber = 9 while True: guess=int(input()) if guess > myNumbe... 阅读全文
posted @ 2018-05-02 21:15 刘海茵 阅读(201) 评论(0) 推荐(0)