years =[2016,2017,2018,2019,2020]
search_list =[11,21,22,23,25,24,26,30,14,13,12,10]
type_list =["中国大学排名(主榜)","中国医药类大学排名","中国财经类大学排名","中国语言类大学排名","中国政法类大学排名","中国民族类大学排名","中国体育类大学排名","中国艺术类高校名单","中国合作办学大学排名","中国独立学院排名","中国民办高校排名","中国大学排名(总榜)"]for year in years:for type1 in type_list:
url = f'https://www.shanghairanking.cn/rankings/bcur/{year}'+str(search_list[type_list.index(type1)])
data = China_university(url, type1, year)
download(data, type1)print(f'{year}年加载完成!')