📜  从链接 python 代码示例打开图像

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

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

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