import requests
path=r"d:\abc.jpg"
url="http://image.nationalgeographic.com.cn/2017/0211/20170211061910157.jpg"
r=requests.get(url)
with open(path,"wb") as f:
f.write(r.content)
import requests
path=r"d:\abc.jpg"
url="http://image.nationalgeographic.com.cn/2017/0211/20170211061910157.jpg"
r=requests.get(url)
with open(path,"wb") as f:
f.write(r.content)