PythonNube在这里。我知道两种方法可以将URL解析到Beautifulsoup打开URL。方法#1使用请求frombs4importBeautifulSoupimportrequestspage=requests.get(url)soup=BeautifulSoup(page.content,'html.parser')printsoup.prettify()方法#2使用Urllib/urllib2frombs4importBeautifulSoupimporturllib2f=urllib2.urlopen(url)page=f.read()#Somepeopleskipthisst