n = input()
for i in n:
if ord("a") <= ord(i) <= ord("z"):
print(chr(ord(‘z‘) - (ord(i) - ord(‘a‘))),end = ‘‘)
elif ord("A") <= ord(i) <= ord("Z"):
print(chr(ord(‘Z‘) - (ord(i) - ord(‘A‘))),end = ‘‘)
else:
print(i,end = ‘‘)
学号:37
原文:https://www.cnblogs.com/lyf238/p/15309752.html