餐饮网站建设的目的,如何搭建公司官网,app推广团队,商城网站开发嵌入支付宝关于Pillow与PIL
PIL(Python Imaging Library)是Python一个强大方便的图像处理库#xff0c;名气也比较大。不过只支持到Python 2.7。
PIL官方网站#xff1a;http://www.pythonware.com/products/pil/
Pillow是PIL的一个派生分支#xff0c;但如今已经发展成为比PIL本身…关于Pillow与PIL
PIL(Python Imaging Library)是Python一个强大方便的图像处理库名气也比较大。不过只支持到Python 2.7。
PIL官方网站http://www.pythonware.com/products/pil/
Pillow是PIL的一个派生分支但如今已经发展成为比PIL本身更具活力的图像处理库。目前最新版本是3.0.0。
Python 3.x 安装Pillow
给Python安装Pillow非常简单使用pip或easy_install只要一行代码即可。 在命令行使用PIP安装
pip install Pillow或在命令行使用easy_install安装
easy_install Pillow安装完成后使用from PIL import Image就引用使用库了。比如
from PIL import Image
im Image.open(bride.jpg)
im.rotate(45).show()