使用httpx库下载图片 Postkarte不想说话 2024-04-22 231 阅读1分钟 # 导入库 import httpx res = httpx.get('https://pic.netbian.com/uploads/allimg/240416/002020-1713198020e46e.jpg') # 保存图片 f = open("girl.jpg", "wb") f.write(res.content)