python 单个图片下载到本地
#coding utf-8
import requests
url='https://imgconvert.csdnimg.cn/aHR0cHM6Ly9tbWJpei5xcGljLmNuL21tYml6X3BuZy90cm01Vk1lRnA5a0pIejVYc2YwM1lCa0tnOTNyd3I2S0p1c2xWb3BpYXpBVW1WOWNEeG5sYzlZMWdWeExyWGMxUUxXWTdhZG9DSzJUNnozZDdYNEs5MmcvNjQw?x-oss-process=image/format,png'
data_img = requests.get(url=url).content
with open('./tupian.jpg','wb') as fp:
fp.write(data_img)