1.创建07_save_jpg.py文件
import requests #发送请求 respone = requests.get("https://www.baidu.com/img/bd_logo1.png?where=super") #保存 with open("a.png","wb")as f: f.write(respone.content) 2.运行代码
本文共 246 字,大约阅读时间需要 1 分钟。
1.创建07_save_jpg.py文件
import requests #发送请求 respone = requests.get("https://www.baidu.com/img/bd_logo1.png?where=super") #保存 with open("a.png","wb")as f: f.write(respone.content) 2.运行代码
转载于:https://www.cnblogs.com/simpleBlue3/p/10633737.html