标签:int 密码 lse input += else 凯撒 print NPU
s = input()
t = ""
for c in s:
if ‘a‘ <= c <= ‘z‘:
t += chr( ord(‘a‘) + ((ord(c)-ord(‘a‘)) + 3 )%26 )
elif ‘A‘<=c<=‘Z‘:
t += chr( ord(‘A‘) + ((ord(c)-ord(‘A‘)) + 3 )%26 )
else:
t += c
print(t)
标签:int 密码 lse input += else 凯撒 print NPU
原文地址:https://www.cnblogs.com/yabaodamowang/p/12548318.html