from bs4 import BeautifulSoup
soup=BeautifulSoup(html, "html.parser")
a=soup.find_all('img',attrs={'pic_type':'0','class':'BDE_Image'})
for x in a:
print(x['src'])
soup.find_all()返回bs4.element.ResultSet,然后逐个读取
from bs4 import BeautifulSoup
soup=BeautifulSoup(html, "html.parser")
a=soup.find_all('img',attrs={'pic_type':'0','class':'BDE_Image'})
for x in a:
print(x['src'])
soup.find_all()返回bs4.element.ResultSet,然后逐个读取