soup = BeautifulSoup('demo.html', 'html.parser')
soup.find_all('p', attrs={'class':'button', 'color':'black'}
若要找某个属性却不知道属性值的,则可以这样写
soup.find_all('p', attrs={'class':'button', 'color':'black', 'size':True}