python下载图片方法

发布时间:2019-07-08 18:00     分类:Python
def request_download(imgurl,savename): import requests
    r = requests.get(imgurl) with open(savename, 'wb') as f:
        f.write(r.content)

评论

推荐文章