windows系统下用Python爬虫图片的默认路径在哪里?
for url in listurl:
f=open(str(i)+'.jpg','wb')
req=urllib.request.urlopen(url)
buf=req.read()
f.write(buf)
i+=1
for url in listurl:
f=open(str(i)+'.jpg','wb')
req=urllib.request.urlopen(url)
buf=req.read()
f.write(buf)
i+=1
2016-09-27
举报