擅长:python、mysql、java
<p>另一个解决方案</p>
<pre><code>from simplified_scrapy import SimplifiedDoc,req,utils
html = '''
<td class="celda400" vAlign="center" align="right" width="100" bgColor="#DFEDFF" style="color:Black">
575,42
</td>
<td class="celda400" vAlign="center" align="right" width="100" bgColor="#DFEDFF" style="color:Black">
575,43
</td>
'''
doc = SimplifiedDoc(html)
texts = doc.selects('td.celda400').text
print (texts)
</code></pre>
<p>结果:</p>
<pre><code>['575,42', '575,43']
</code></pre>
<p>这里有更多的例子<a href="https://github.com/yiyedata/simplified-scrapy-demo/blob/master/doc_examples" rel="nofollow noreferrer">https://github.com/yiyedata/simplified-scrapy-demo/blob/master/doc_examples</a></p>