【Python Challenge-1】trans
来源:互联网 发布:2018年云计算展会 编辑:程序博客网 时间:2024/05/01 02:10
K --> M
O --> Q
E --> G
所有ASCII码都加2,Y,Z回头。
推荐用string.maketrans(),所以就用呗- -、
def decode(text): trans = string.maketrans('abcdefghijklmnopqrstuvwxyz', 'cdefghijklmnopqrstuvwxyzab') text = text.translate(trans) return text
先对
g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj.
用一次decode得到:
i hope you didnt translate it by hand. thats what computers are for. doing it in by hand is inefficient and that's why this text is so long. using string.maketrans() is recommended. now apply on the url.
再对'map'用一次decode得到‘ocr’
0 0
- 【Python Challenge-1】trans
- Python Challenge 谜题1
- python : trans position cipher
- python challenge 答案详解~(1)
- python challenge
- Python Challenge
- Python Challenge
- python challenge
- Python Challenge
- Python challenge
- python challenge
- Python Challenge
- Lua Challenge -- From Python Challenge
- trans
- Trans
- python challenge 游戏闯关 学习1
- The Python Challenge Level 0-1 Solutions
- 深度解密 python challenge第1关
- 2014年24段魔尺变三叶花视频教程
- C语言_循环语句
- Linux中断(interrupt)子系统之五:软件中断(softIRQ)
- 汽车驾驶模拟器_汽车驾驶模拟器的分类
- vs2012编译libcurl-7.38.0
- 【Python Challenge-1】trans
- SQLite ALTER TABLE命令
- virtualbox下安装ubuntu配置总结
- hdu4819 线段树套线段树
- Java枚举常见7种用法
- STM32f103之流水灯
- 唯美的古风句子 惊艳。。。。。
- Android选择本地联系人列表为空
- nyoj845无主之地1