05 2018 档案

摘要:fr = open('jinwanjiudian.txt',mode='r',encoding='utf-8') plaincode = fr.read() print('mingwen:' + plaincode) print('miwen:',end='') for c in plaincode: print(chr(ord(c)+3),end='') fr = op... 阅读全文
posted @ 2018-05-30 20:34 钟永鑫 阅读(97) 评论(0) 推荐(0)
摘要:id = '441621199811026414' 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(... 阅读全文
posted @ 2018-05-23 21:09 钟永鑫 阅读(121) 评论(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:36 钟永鑫 阅读(139) 评论(0) 推荐(0)
摘要:import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle... 阅读全文
posted @ 2018-05-09 20:03 钟永鑫 阅读(157) 评论(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, ... 阅读全文
posted @ 2018-05-09 19:57 钟永鑫 阅读(152) 评论(0) 推荐(0)