CHALLENGE
没事玩了玩Python Challenge, 不知道能到达几个Level. 除了需要编程技巧, 还挺考验智商的, 一块来试试吧.
Level 0 – key: 274877906944
>>> 2**28Level 1 – key: ocr
import string
hints = '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.'
sour = 'abcdefghijklmnopqrstuvwxyz'
dest = 'cdefghijklmnopqrstuvwxyzab'
mapTable = string.maketrans(sour, dest)
print hints.translate(mapTable)
#hints: 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.
Level 2 – key: equality
查看page source code, 然后find rare characters in the mess.
>>> ''.join([x for x in data if x.isalpha()])