文章
6
粉丝
79
获赞
0
访问
2.8k
while True: try: str = input() text = "" for char in str: if char.isalpha(): shift = 3 if char.islower(): start = ord('a') else: start = ord('A') letter = chr((ord(char) - start + shift) % 26 + start) text += letter else: text += char print(text) except: break
登录后发布评论
暂无评论,来抢沙发