str1 = ‘FRPHEVGL’
str2 = str1.lower()
num = 1
for i in range(26):
print(“{:<2d}”.format(num),end = ’ ‘)
for temp in str2:
if(ord(temp)+num > ord(‘z’)):
print(chr(ord(temp)+num-26),end = ‘’)
else:
print(chr(ord(temp)+num),end = ‘’)
num += 1
print(’‘)
str = ‘ComeChina’
for temp in str:
if (ord(temp) + 13 > ord(‘z’)):
print(chr(ord(temp) + 13 - 26), end=’‘)
else:
print(chr(ord(temp) + 13), end=’‘)
print(’')
大帝的密码武器 buuctf crypto 解题
最新推荐文章于 2024-08-14 15:40:57 发布