StackOverflow 文档 cryptography 教程 凯撒密码 Python 实现 Python 实现 Created: November-22, 2018 ASCII 方式 这会移动字符但不关心新字符是否不是字母。如果你想使用标点符号或特殊字符,这是很好的,但它不一定只给你字母作为输出。例如,z3 转换为“}”。 -python langCopydef ceasar(text, shift): output = "" for c in text: output += chr(ord(c) + shift) return output ROT13