完整代码: 部分代码解析: 1、传入的数据为字符型 2、ascii_lowercase[k:]+ascii_lower[:k] 3、''.maketrans():显示的数字为ascii码,,translate()使用 4、自定义函数