python3的requests模块下载图片到本地
import requests # 图片地址 url = 'http://www.open-open.com/bbs/uploadImg/20160107/20160107133856_341.jpg' html = requests.get(url) # 将图片保存到D盘 with open("D:/1.jpg","wb")as f: f.write(html.content)