Python比较复杂的笨办法(求互关点赞
2025-08-09 18:58:05
发布于:上海
1阅读
0回复
0点赞
shift_dict = {
'a': 'b', 'b': 'c', 'c': 'd', 'd': 'e', 'e': 'f',
'f': 'g', 'g': 'h', 'h': 'i', 'i': 'j', 'j': 'k',
'k': 'l', 'l': 'm', 'm': 'n', 'n': 'o', 'o': 'p',
'p': 'q', 'q': 'r', 'r': 's', 's': 't', 't': 'u',
'u': 'v', 'v': 'w', 'w': 'x', 'x': 'y', 'y': 'z',
'z': 'a'
}
s = input().strip()
result = [shift_dict.get(char, char) for char in s]
print(''.join(result))
这里空空如也
有帮助,赞一个