我写运行报错
import requests
from bs4 import BeautifulSoup
headers={" User-Agent":" user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 SLBrowser/7.0.0.5211 SLBChan/27"}
for i in range(0,4):
page=i*30
url="http://www.zuihaodaxue.cn/zuihaodaxuepaiming2016.html"
response=requests.get(url,headers=headers)
html=response.text
soup=BeautifulSoup(html,"lxml")
content_all=soup.find_all(class_="title")
for content in content_all:
contentString=content.string
print(contentString)