使用python3.6时安装好lxml时按照许多网上的教程来引入会发现etree没被引入进来 解决办法: import lxml.html etree = lxml.html.etree 这样就可以使用etree了