單項選擇題Python中要使用XPth解析需要()導入模塊。

A.from etree import lxml
B.from lxml import etree
C.from bs4import etree
D.from etree import bs4


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題請求頭部信息中,()用于指定瀏覽器可以接受的字符集類型。

A.host
B.Content-Type
C.accept
D.Accept-Charset

2.單項選擇題以下XPath謂語中,()能獲得滿足條件的倒數(shù)第二個節(jié)點。

A.[max()-1]
B.[last()-1]
C.[position()-1]
D.[position()>-1]

3.單項選擇題requests庫中,get()函數(shù)關于cookies使用說法錯誤的是。

A.cookies不能通過headers參數(shù)傳遞
B.cookies支持字典類型的數(shù)據(jù)
C.cookies支持CookieJar類對象
D.cookies可以通過headers參數(shù)傳遞

5.單項選擇題()服務將域名和IP地址相互映射。

A.DNS
B.DSN
C.ADSL
D.CSDN