|
发表于 2018-6-20 21:20:49
|
显示全部楼层
FileNotFoundError Traceback (most recent call last)
<ipython-input-1-1d477ac04ece> in <module>()
31 list1 = get_url()
32 list2 = get_girl_url(list1)
---> 33 save_img(list2)
<ipython-input-1-1d477ac04ece> in save_img(img_url_list)
26 html = res.content
27 filename = 'C:/Users/HP/Desktop/learn_test/MM/' + img_url.split('/')[-1] #这里保存文件路径请依据自己的电脑位置来存放
---> 28 with open(filename,'wb') as f:
29 f.write(html)
30
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/HP/Desktop/learn_test/MM/18a01.jpg' |
|