📜  从 url python 代码示例获取图像

📅  最后修改于: 2022-03-11 14:45:42.592000             🧑  作者: Mango

代码示例3
from PIL import Image
import requests
from io import BytesIO

response = requests.get(url)
img = Image.open(Bytes(response.content))