标签:col 实例 ack alt 操作 odi enc range hex
fr=open(‘0530.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(‘0530.txt‘,mode=‘r‘,encoding=‘utf-8‘) plaincode = fr.read() fr.close fw = open(‘c_0530.txt‘,mode=‘a‘,encoding=‘utf-8‘) for c in plaincode: fw.write(chr(ord(c)+3)) fw.close
fr = open(‘0530.txt‘,mode=‘r‘,encoding=‘utf-8‘) plaincode = fr.read() fr.close fw = open(‘c_0530.txt‘,mode=‘a‘,encoding=‘utf-8‘) for c in plaincode: fw.write(chr(ord(c)-3)) fw.close
import turtle colors=[‘yellow‘,‘red‘,‘black‘,‘blue‘,‘purple‘,‘orange‘] turtle.speed(10) for i in range(100): turtle.pencolor(colors[i%6]) turtle.forward(i) turtle.left(59) turtle.done()
标签:col 实例 ack alt 操作 odi enc range hex
原文地址:https://www.cnblogs.com/bjzy/p/9113633.html