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...
阅读全文
摘要: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):...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:number = 18 while True: guess = int(input('请输入一个数字:')) if guess > number: print('>') elif guess >> turtle.fillcolor('purple') >>> turtle.begin_fill() >>> turtle.circle(30) >>> tu...
阅读全文

浙公网安备 33010602011771号