一. PIL(Python ImagingLibrary)是Python一个强大方便的图像处理库 1.安装pillow 1 $ sudo pip install pillow==2.6.0 或在命令行使用easy_install安装: 1 $ sudo pip easy_install Pillow 2.使用pillow 安装完成后,使用from PIL import Image就引用使用库了。比如: 123 from PIL import Imageim = Image.open("hello.jpg")im.rotate(45).show() 赞微海报分享
近期评论