Pillow模块提供了丰富的图像处理功能,并且很多其它模块使用到该模块。

  1. 安装Pillow模块。使用以下命令:

pip install Pillow

2. 使用举例

#导入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

 

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-11-15
  • 2022-01-13
猜你喜欢
  • 2021-10-23
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2021-09-01
  • 2022-12-23
相关资源
相似解决方案