fr = open('lzr.txt',mode='r',encoding='utf-8') zyx = fr.read() print('明文:' + zyx) print('密文:',end='') for c in zyx: print(chr(ord(c)+3),end='')