xpath问题

import codecs from lxml import etree tree=etree.HTML("<tr><td><img src='china.gif'> China</td></tr>") node=tree.xpath("//tr[1]/td[1]") print node[0].tag print node[0].text // 预期获取到China,为什么获取到的的是None
我想获取到China,为什么不行呢?

鲲鹏数据 - 专业Web数据采集服务提供者
http://www.