http://www.pythonchallenge.com/pc/def/equality.html 根据页面提示:一个小写字母刚刚好被左右3个大写字母包围. 查看页面代码得到需要处理的字符. 将字符复制到文档/tmp/s.txt下 python: import re with open('/tmp/s.txt', 'r') as f: content=f.read() raw_letter=re.findall('[a-z]+[A-Z]{3}([a-z])[A-Z]{3}[a-z]+', c…
http://www.pythonchallenge.com/pc/def/ocr.html 根据页面提示查看网页源代码,在最后:<!--find rare characters in the mess below:--> <!--%%$@_$^__#)^)&!_+]!*@&^}@[@%]()%+$&[(_@%+%$*^@$^!+]!&_#)_*}{}}!}_]$[%}@[{_@#_^{*@##&{#&{&)*%(]{{([*}@[…
查看页面代码,知道找zip www.pythonchallenge.com/pc/def/channel.zip,查看zip下的readme.txt知道从90052,跑一遍知道要收集zip的comment zf = zipfile.ZipFile("/tmp/channel.zip") number = '90052' length = len(zf.infolist()) ret = [] for i in length: text = zf.read(num+'.txt') num…
l5=requests.get("http://www.pythonchallenge.com/pc/def/banner.p") body = l5.text lists = pickle.loads(body) for line in lists: ret = '' for num in line: ret += num[0]*num[1] print ret 得channel…
http://www.pythonchallenge.com/pc/def/linkedlist.php 查看页面源代码或者点击图片 http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=12345 and the next nothing is 44827 本题将页面中的数字代替url中nothing的值 python: import reimport requestsburl='http://www.pythonchalle…