import requests
from bs4 import BeautifulSoup
import bs4
r = requests.get('http://www.zuihaodaxue.cn/zuihaodaxuepaiming2019.html')
#以下为对请求回的信息进行'utf-8'编码
r.encoding = 'utf-8'
demo = r.text
soup=BeautifulSoup(demo,'html.parser')
for i in soup.tbody.find_all('tr'):
print(i.contents[0].string,
i.contents[1].string,
i.contents[2].string,
i.contents[3].string)