A.性别
B.季节
C.年龄
D.皮肤类型
第3题
from scrapy.selector import Selector htmlText=''' <bookstore> <book id="b1"> <title lang="english">Harry Potter</title> <price>29.99</price> </book> <book id="b2"> <title lang="chinese">学习XML</title> <price>39.95</price> </book> </bookstore> ''' selector=Selector(text=htmlText) ____________________________________ print(s.extract_first()) ____________________________________ print(s.extract_first()) 程序结果: <title lang="english">Harry Potter</title> <title lang="chinese">学习XML</title>
A、s=selector.xpath("//book[position=1]/title"); s=selector.xpath("//book[position=2]/title")
B、s=selector.xpath("//book[position()=2]/title"); s=selector.xpath("//book[position()=1]/title")
C、s=selector.xpath("//book[position=2]/title"); s=selector.xpath("//book[position=1]/title")
D、s=selector.xpath("//book[position()=1]/title"); s=selector.xpath("//book[position()=2]/title")
第8题
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!