收起
tree =etree.HTML(data)这代码错了,你data=response.json()返回的是json数据,,,如果你确定网页是html代码,应该是data=response.text
报告相同问题?