【python 读取url图片】python读取url图片地址

# -*- coding:utf-8 -*-


import requests
from PIL import Image
from io import BytesIO
import time
time1=time.time()


img_src_list=['XXXXXXXXXXXXXXXXX']


for each in img_src_list:
    response = requests.get(each)
    image = Image.open(BytesIO(response.content))
    print(image)

time2=time.time()
print('总共耗时:' + str(time2 - time1) + 's')

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页