使用bs4库 查找a标签中的href属性的取值 下列哪种方法正确?

行业问题 已帮助 人

使用bs4库,查找a标签中的href属性的取值,下列哪种方法正确?

A.soup.a.attrs["href"]

B.soup.a["href"]

C.soup.a.get("href")

D.soup.a."href"

正确答案:ABC

wWW.WENtiyI.com

问题来自[问题易],本页地址:https://www.wentiyi.com/wenti/3140163.html