[解决方案] pythonchallenge level 3
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]+', content)
letter=''.join(raw_letter)
得出'linkedlist'
输入http://www.pythonchallenge.com/pc/def/linkedlist.html,页面显示linkedlist.php
输入http://www.pythonchallenge.com/pc/def/linkedlist.php
ok ,level 4