也许,class=''会做find_allor findAll:from bs4 import BeautifulSouphtml = """<div class="news"> <p class="breaking"> </p> ...<p> i need to pull here. </p>"""soup = BeautifulSoup(html, 'html.parser')print(soup.find_all('p', class_=''))print(soup.findAll(True, {'class': ''}))输出[<p> i need to pull here. </p>][<p> i need to pull here. </p>]