全部博文(245)
分类: Python/Ruby
2010-11-16 20:51:29
|
将a替换为c b替换为d
结尾的几个字母,从字母表头开始替换,比如y替换为a z替换为b
代码:
|
输出结果是:
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.html,按照上文的道理替换,则新的连接为:
过关!!