XPath解析中的 'Element a at 0x5308a80'是什么?

from lxml import etree

当我们不用框架的时候会用到这样的库,然后进行xpath,可有时候得到的却不是我们想要的而是:Element 类型的东西,那我们怎么转换成自己想要的东西呢?
from lxml import html
myWant = html.tostring(yourElement[0], encoding='utf-8').decode('utf-8')

  

原文地址:https://www.cnblogs.com/fh-fendou/p/12425003.html