通过计算字母映射,得到新的url:
http://www.pythonchallenge.com/pc/def/map.html
http://www.pythonchallenge.com/pc/def/ocr.html
程序如下:
import string
table = str.maketrans(string.ascii_lowercase, string.ascii_lowercase[2:] + string.ascii_lowercase[:2])
print("map".translate(table))
官方解答:
http://wiki.pythonchallenge.com/index.php?title=Level1:Main_Page