mekoko

凯撒密码移位python

#!/usr/bin/python
'''
凯撒密码
'''
a="gmbhqwertghjkcvbzn"
s=[""]*len(a)
for j in range(26):
for i in range(len(a)):
s[i]=chr(ord(a[i])-j)
print "".join(s)

posted on 2017-12-13 14:46  mekoko  阅读(2388)  评论(0编辑  收藏  举报

导航