实验吧-古典密码

复制代码
# *-* coding=utf-8 *-*
strings = "79 67 85 123 67 70 84 69 76 88 79 85 89 68 69 67 84 78 71 65 72 79 72 82 78 70 73 69 78 77 125 73 79 84 65"
strs = ''
for i in strings.split(' '):
    strs += chr(int(i))

res = ''
for i in range(0, 35, 7):
    str1 = ['', '', '', '', '', '', '']
    str2 = strs[i:i+7]
    str1[0] = str2[1]
    str1[1] = str2[6]
    str1[2] = str2[5]
    str1[3] = str2[3]
    str1[6] = str2[2]
    str1[4] = str2[4]
    str1[5] = str2[0]
    for j in str1:
        res += j
        print res

print res
复制代码

 

posted on   gwind  阅读(312)  评论(0编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示