Pillow模块提供了丰富的图像处理功能,并且很多其它模块使用到该模块。
pip install Pillow
2. 使用举例
#导入Image from PIL import Image #打开图片 img = Image.open("d:\qr.png") #显示图片 img.show()
#导入Image
from PIL import Image
#打开图片
img = Image.open("d:\qr.png")
#显示图片
img.show()
3. 详细教程请参考:https://pillow.readthedocs.io/en/5.1.x/handbook/index.html