black

登录

单项选择题

from scrapy.selector import Selector htmlText=""" <bookstore> <book id="b1"> <title lang="english">Harry Potter</title> <price>29.99</price> </book> </bookstore> """ selector=Selector(text=htmlText) _________________________ print(s) print(s.extract()) for e in s: print(e.extract()) 程序结果: [<selector xpath="//book/title/text()" data="arry ">, <selector xpath="//book/title/text()" data="otter">] ["arry ", "otter"] arry otter
A、s=selector.xpath("//book/title/text()")
B、s=selector.xpath("/book/title/text()")
C、s=selector.xpath("//book/title/text")
D、s=selector.xpath("/book/title/text")

A.selector
B.99</price>
C.extract())
D.extract())
E.xpath("//book/title/text()")
F.xpath("/book/title/text()")
G.xpath("//book/title/text")
H.xpath("/book/title/text")
相关考题

单项选择题 《孙子兵法》是()家的代表作

问答题 《海关法》规定了海关的四项基本任务是什么?

未知题型 上传四大软件制作后的优秀效果图作品

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064