使用from lxml import etree 现红: 解决: python 3.5之后的lxml中不能再直接引入etree,换了一种方法引入: from lxml import html etree = html.etree