Paris-

导航

文件操作

fr = open('plainText.txt',mode='r',encoding='utf-8')
plainText = fr.read()
print('明文:'+plainText)
print('密文:',end='')

fw = open('cipherText.txt',mode='a',encoding='utf-8')
for c in plainText:
    print(chr(ord(c)+3),end='')
    
    

posted on 2018-05-28 16:14  Paris-  阅读(108)  评论(0编辑  收藏  举报