擅长:python、mysql、java
<p>你可以这样做:</p>
<pre><code>soup = BeautifulSoup(html)
ols = soup.findAll('ol') # for the two languages
for ol in ols:
ps = ol.findAll('p')
for p in ps:
for item in p.contents:
if str(item)!='<br />':
print str(item)
</code></pre>