擅长:python、mysql、java
<p>它起作用了。
您必须注意,列表中的第二个结果没有检查内部标记(子标记)中的相同条件。所以包装<code><p class="story"></code>已经满足了条件,并且已经和它的所有内容一起放在结果列表中。你知道吗</p>
<p>此结果列表:</p>
<pre><code>[<p class="title"><b>The Dormouse's story</b></p>,
-
<p class="story">Once
upon a time there were three little sisters; and their names were
<a class="sister" href="http://example.com/elsie" id="link1">Elsie</a>,
<a class="sister" href="http://example.com/lacie" id="link2">Lacie</a> and
<a class="sister" href="http://example.com/tillie" id="link3">Tillie</a>;
and they lived at the bottom of a well.</p>,
-
<p class="story">...</p>]
</code></pre>
<p>包含三个标记,每个项都有'class'属性,没有'id'属性。你知道吗</p>