python3.7 encountered in the use of etree

When installed in accordance with lxml many online tutorials to introduce will find etree not come in time to be introduced using python3.6

Solution:

 

A, Import lxml.html
etree = lxml.html.etree
This enables the use of etree

two,

Lxml modified version is 4.2.5

Ignore error!

Source of the following links:

https://blog.csdn.net/weixin_42670402/article/details/82385716

Guess you like

Origin www.cnblogs.com/shaozhihao/p/11582385.html