xpath匹配标签中所有文本方法 2018-08-03 本文已影响0人 bboyAyao li = html.xpath('//li[@class="cur_page"])[0] txt = li.xpath('string(.)').strip()