单项选择题
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 otterA、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")
单项选择题 《孙子兵法》是()家的代表作
问答题 《海关法》规定了海关的四项基本任务是什么?
未知题型 上传四大软件制作后的优秀效果图作品