擅长:python、mysql、java
<p>医生说:</p>
<blockquote>
<p>This function only picks up the <strong>'p'</strong> tags.It doesn’t pick up the <strong>'a'</strong> tags, because those tags define both “class” and “id”. It doesn’t pick up tags like 'html' and 'title', because those tags don’t define “class”.</p>
</blockquote>
<pre><code> soup.find_all(has_class_but_no_id)
# [<p class="title"><b>The Dormouse's story</b></p>,
# <p class="story">Once upon a time there were...</p>,
# <p class="story">...</p>]
</code></pre>
<p>这是不清楚的,它导致人们期待一个没有任何结果标签。他们应该更改语句或示例。你知道吗</p>