05 2018 档案
摘要:fr = open('lyx.txt',mode='r',encoding='utf-8') lyx = fr.read() print('明文:'+lyx) print('密文:',end='') fw = open('penguin.txt',mode='a',encoding='utf-8')
阅读全文
摘要:plaincode=input('请输入明文:') print('密文:',end='') x=ord('a') y=ord('z') for i in plaincode: if x<= ord(i)<=y: print(chr(x+(ord(i)-x+3)%26),end='') else: print(i,end='') stuN...
阅读全文
摘要: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() mygoto(...
阅读全文
摘要: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, 110)...
阅读全文

浙公网安备 33010602011771号