Python Challenge Level 1 ~ 2
Python Challenge,一个Programming Game的Site,没事玩玩。
?
Level-1:
http://www.pythonchallenge.com/pc/def/map.html
字符字典,先翻译hints。
?
import urllib.requestimport reres = urllib.request.urlopen('http://www.pythonchallenge.com/pc/def/ocr.html').read().decode()matches = re.findall(r'<!--(.*?)-->', res, re.DOTALL)''.join(re.findall(r'[a-zA-Z]', matches[1]))
?得出答案:equality。替换url,顺利进入下一关。
?