2010-10-15 45 views

回答

2

与BS4事情已经改变了一点。所以代码应该看起来像这样

soup = BeautifulSoup(htmlstring,'lxml') soup.find_all('div', {'style':"width=300px;"})

相关问题