Fork me on GitHub

移位

运行环境python2.7

1
2
3
4
5
6
7
8
9
key='CRL'.upper()
for i in range(0,26):
flag=''
for j in key:
if j.isalpha():
flag+=chr(((ord(j)-ord('A')+i)%26)+ord('A'))
else:
flag+=j
print str(i).zfill(2),flag

Your support will encourage me to continue to create!