文件操作,列表实例NiceHexSpiral

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

posted @ 2018-05-30 21:16  黄雪旎  阅读(169)  评论(0编辑  收藏  举报