查找文档中所有超级链接包含的文本值 from bs4 import...
查找文档中所有超级链接包含的文本值 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_all("a"); print(tag.text)
B、tags=soup.find("a"); print(tag.text)
C、tags=soup.find_all("a"); print(tag["text"])
D、tags=soup.find_all("a"); print(tag.text)