擅长:python、mysql、java
<p>您可以使用css选择器<code>nth-of-type</code>在<code>td</code>中导航</p>
<p>这是一个样本“</p>
<pre><code>soup = BeautifulSoup(html, 'html.parser')
a = soup.select('td:nth-of-type(1) a')[0]
href = a['href']
td = soup.select("td:nth-of-type(3)")[0]
text = td.get_text(strip=True)
</code></pre>