from PIL import Image import urllib.request from io import BytesIO file = BytesIO(urllib.request.urlopen('http://www.baidu.com/32803.jpg').read()) im = Image.open(file) width, height = im.size
如果本文对你有帮助,欢迎打赏本站
from PIL import Image import urllib.request from io import BytesIO file = BytesIO(urllib.request.urlopen('http://www.baidu.com/32803.jpg').read()) im = Image.open(file) width, height = im.size
如果本文对你有帮助,欢迎打赏本站