#!/usr/bin/python3 # -*- coding: utf-8 -*- import requests from PIL import Image from io import BytesIO response = requests.get('https://static.geetest.com/pictures/gt/5629ed821/5629ed821.webp') response = response.content BytesIOObj = BytesIO() BytesIOObj.write(response) img = Image.open(BytesIOObj) img.show()
转载地址:https://www.cnblogs.com/Summer-skr--blog/p/11664212.html