Python Challenge (level 2)

URI: http://www.pythonchallenge.com/pc/def/ocr.html




说明:
图画中出现一本很模糊的书,但真正的答案要从页面的源代码中找
提示1:recognize the characters. maybe they are in the book, but MAYBE they are in the page source.
提示2:find rare characters in the mess

解题方法:
import re

data = ''' ''' #三引号中填入页面的数据
         
print "".join(re.findall("[A-Za-z]", data))


过关答案:
equality

你可能感兴趣的:(html,python)