更改为bs4解析器 更改为bs4解析器>>> from lxml.html.soupparser import fromstring >>> root = fromstring ( tag_soup )