|
<span class="date meta-item tie-icon">2011-08-11</span><div class="tie-alignright"></div></div>,用正则表达式定位到了日期,但是输出时什么都没有,哪位大佬指条明路。bjt1 = re.compile(r'tie-icon">(?P<yer>.*?)</span>',re.S)result = objt1.finditer(page_content)for it in result: print(it.group("yer"))
|
|