Once upon a free a poor farmer taking a sack of wheat to the mill did not know【C1】______to
【C1】
A.how
B.what
C.which
D.whether
【C1】
A.how
B.what
C.which
D.whether
Once upon a free a poor farmer taking a sack of wheat to the mill did not know (56) to do when it slipped from his horse and fell (57) the road.The sack was (58) heavy for him to (59) , and his only hope was that (60) someone would come riding by and (61) a hand.
It was not long (62) a rider appeared, but the farmer's heart sank when he (63) him, for it was the great man who lived in a castle nearby. The farmer (64) have dared to ask (65) farmer to help, or any poor man who might have come (66) the road, but he could not beg a (67) of so great a man. (68) , as soon as the great man came up he got (69) his horse, saying "I see you've had bad luck, friend.How good it is (70) I'm here just at the (71) time. "Then he took one (72) of the sack, the farmer the other, and between them they lifted it on the horse.
"Sir," asked the farmer, "how can I pay you? "
"Easily enough," the great man (73) . "Whenever you see (74) else in trouble, (75) the same for him. "
(71)
A.how
B.what
C.which
D.whether
元素的所有直接子元素节点 from bs4 import BeautifulSoup doc=''' <title>The Dormouse's story</title>
TheDormouse'sstoryOnce upon a time ...
''' soup=BeautifulSoup(doc,"lxml") ________________ for x in __________________: print(x) 缺失的语句是:
A、tag=soup.find("p"); tag.children
B、tag=soup.find("p"); tag.child
C、tag=soup.find_all("p"); tag.children
D、tag=soup.find_all("p"); tag.child
The Dormouse's story
Once upon a time there were three little sisters; and their names were Elsie, Lacie and Tillie; and they lived at the bottom of a well.
...
''' soup=BeautifulSoup(doc,"lxml") _______________________________ print(tag) 程序结果找到class="story"的
元素,缺失的语句是
A、tag=soup.find("p",attrs={"class":"story"})
B、tag=soup.find("p",attr={"class":"story"})
C、tag=soup.find("p")
D、tag=soup.find("p",class="story")
The Dormouse's story
Once upon a time there were three little sisters; and their names were Elsie, Lacie and Tillie; and they lived at the bottom of a well.
...
''' soup=BeautifulSoup(doc,"lxml") ______________________________________ for tag in tags: print(tag["href"]) 结果是: http://example.com/elsie http://example.com/lacie http://example.com/tillie 缺失的语句是:
A、tags=soup.select("pa")
B、tags=soup.select("p[] a")
C、tags=soup.select("p[class]>a")
D、tags=soup.select("p[class='story'] a")
超级链接包含的文本值 from bs4 import BeautifulSoup doc=''' <title>The Dormouse's story</title>
The Dormouse's story
Once upon a time there were three little sisters; and their names were Elsie, Lacie and Tillie; and they lived at the bottom of a well.
...
''' soup=BeautifulSoup(doc,"lxml") __________________________________ for tag in tags: ________________________ 缺失的语句是:
A、tags=soup.find("p"); print(tag.text)
B、tags=soup.find("p"); print(tag["text"])
C、tags=soup.find_all("p"); print(tag.text)
D、tags=soup.find_all("p"); print(tag["text"])
Once upon a time, ______ known by the name of Rip Van Winkle.
A.a man lived there
B.there lived a man
C.lived there a man
D.lived a man
A.volume of liquid in the tank
B.displacement of the vessel
C.location of the tank in the vessel
D.height of the center of gravity of the vessel
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!