Python的PIL库中的图像尺寸size

代码:
from PIL import Image
img = Image.open('D:\\image_for_test\\Spee.jpg')
print(img.size)
print(img.size[0])
print(img.size[1])

结果:

猜你喜欢

转载自blog.csdn.net/minicattwo/article/details/80547509