import requestsresponse = requests.get( "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1579802185235&di=013eca98d84b5fffa15797f94a0a29e7&imgtype=0&src=http%3A%2F%2F00.minipic.eastday.com%2F20170426%2F20170426145543_d286b1d11013bff1d01c48c2a30b9586_10.jpeg")with open("美女图片.jpg", "wb") as f: f.write(response.content)
来源:https://www.cnblogs.com/zhang-da/p/12231690.html