05 2018 档案

摘要:fr = open('letter.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('letter.txt', m... 阅读全文
posted @ 2018-05-30 21:43 黄嘉欣 阅读(141) 评论(0) 推荐(0)
摘要:id = '440802199708230442' area = id[0:6] birthday = id[6:14] sex = id[-2] print('市区是:'+area+'\n生日是:'+birthday) if(int(sex) % 2 == 0): print('girl') else: print('boy') for i in range(12):... 阅读全文
posted @ 2018-05-23 20:55 黄嘉欣 阅读(98) 评论(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:46 黄嘉欣 阅读(100) 评论(0) 推荐(0)
摘要:import turtle turtle.bgcolor('red') turtle.color('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.right(144) import turtle turtle.f... 阅读全文
posted @ 2018-05-09 21:25 黄嘉欣 阅读(227) 评论(0) 推荐(0)
摘要:number = 18 while True: guess = int(input('请输入一个数字:')) if guess > number: print('>') elif guess >> turtle.fillcolor('purple') >>> turtle.begin_fill() >>> turtle.circle(30) >>> tu... 阅读全文
posted @ 2018-05-05 16:13 黄嘉欣 阅读(228) 评论(0) 推荐(0)