Heim > Fragen und Antworten > Hauptteil
htmlobj = urlopen('http://www.58pic.com/haibao/0/dnum-1.html')
soup = BeautifulSoup(htmlobj, "lxml")
print(soup)
高洛峰2017-04-18 10:24:48
你应该这样
htmlobj = urlopen('http://www.58pic.com/haibao/0/dnum-1.html')
soup = BeautifulSoup(htmlobj.read(), "lxml")
print(soup)