python 简单的从网络上下载一张图片

# import module your need
from urllib import request
with request.urlopen("https://game.gtimg.cn/images/lol/act/img/skin/big117027.jpg") as f:
    data=f.read()
with open(".//big117027.jpg","wb") as file1:
    file1.write(data)

你可能感兴趣的:(学习笔记,python)