凯撒密码移位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)
#!/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)