擅长:python、mysql、java
<p>当BeautifulSoap select()方法返回一个列表时,您需要使用索引访问它,在本例中为[0]。请参考<a href="https://stackoverflow.com/questions/25146415/selecting-nested-element-with-beautiful-soup">Selecting nested element with beautiful soup</a>。
此外,您还可以考虑find()或find\u all()方法,具体取决于需要解决的任务类型。你知道吗</p>