http://www.pythonchallenge.com/

第一关:2**38

第二关:

import string

t1 = '''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.'''

t2 = 'map'

A = 'abcdefghijklmnopqrstuvwxyz'

B = 'cdefghijklmnopqrstuvwxyzab'

table = string.maketrans(A,B)

output = t1.translate(table)

print output

output = t2.translate(table)

print output

第三关:(从一段乱七八糟的文本中找字母)

将注释掉的那段内容拷贝到文件中

用vim打开

用正则表达式匹配

:%s:[^a-zA-Z]::g

:%g:^[ tab]*$:d

第四关:http://www.pythonchallenge.com/pc/def/equality.html