s = "Gur cnffjbeq vf 5Gr8L4qetPEsPk8htqjhRK8XSP6x2RHh"
for i in s:
asc = ord(i)
if (asc >= ord("a") and asc <= ord('z')):
asc = (asc - ord("a") + 13) % 26 + ord("a")
print(chr(asc),end="")
elif (asc >= ord('A') and asc <= ord('Z')):
asc = (asc - ord("A") + 13) % 26 + ord("A")
print(chr(asc),end="")
else:
print(i,end="")
Python破解Rot13密码
最新推荐文章于 2023-12-10 09:38:43 发布