Heim > Fragen und Antworten > Hauptteil
我不知道为什么出错,新手小白向各位大神求就~~
代码:
import urllib.request
urls = ['http://paper.people.com.cn/rm...{}.htm'.format(str(0)+str(i) if len(str(i))==1 else str(i)) for i in range(1,18,1)]
print(urls)
folder_path = '/Users/sufan/Desktop/','w'
for url in urls:
urllib.request.urlretrieve(url)