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: 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")