标签:leo rom raw shutil usr imp code oca image
import requests
import shutil
url_png = "http://...png"
path_image = "/usr/local/001"
resp = requests.get(url, stream=True)
with open(path_image, ‘wb‘) as f:
shutil.copyfileobj(resp.raw, f)
标签:leo rom raw shutil usr imp code oca image
原文地址:https://www.cnblogs.com/otfsenter/p/9561898.html