擅长:python、mysql、java
<pre><code>soup.button['data-spectate-link']
</code></pre>
<p>是你想要的。你知道吗</p>
<p><code>soup.button</code>在汤中设置标记。然后使用<code>['data-spectate-link']</code>可以在标记内设置属性。你知道吗</p>
<p><a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/" rel="nofollow noreferrer">docs here</a></p>