import requests
response = requests.get("https://game.gtimg.cn/images/lol/act/img/skin/small7000.jpg")
with open("a.jpg", "wb") as f:
f.write(response.content)
python爬虫之下载图片
最新推荐文章于 2024-07-22 20:44:36 发布
import requests
response = requests.get("https://game.gtimg.cn/images/lol/act/img/skin/small7000.jpg")
with open("a.jpg", "wb") as f:
f.write(response.content)