<div><span class="scalar-ret">Scalar</span> A single value of any type.</div
rv_div=rv.find_all("div")[0]
for string in rv_div.strings:
print(string)
结果:
Scalar
A single value of any type.
<div><span class="scalar-ret">Scalar</span> A single value of any type.</div
rv_div=rv.find_all("div")[0]
for string in rv_div.strings:
print(string)
结果:
Scalar
A single value of any type.
本文标题:Beautiful Soup 查找嵌套string
本文链接:https://www.haomeiwen.com/subject/hpcaxltx.html
网友评论