Python Challenge (level 3)

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

说明:
title中提示使用正则re,页面显示两侧被3个(且只为3个)大写字母包围的小写字母    page source中有待处理的数据
 
解题方法:
import re

data = ''' ''' # 页面中的数据
          
print "".join(re.findall("[^A-Z]+[A-Z]{3}([a-z])[A-Z]{3}[^A-Z]+", data))


过关答案:
linkedlist

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