2019-04-03 15:48:10 1508浏览
今天扣丁学堂Python培训老师给大家分享一篇关于Python3安装Pillow与PIL方法的详细介绍,首先PIL(PythonImagingLibrary)是Python一个强大方便的图像处理库,名气也比较大。不过只支持到Python2.7,下面我们一起来看一下吧。
pip install Pillow
easy_install Pillow
from PIL import Image im = Image.open("bride.jpg") im.rotate(45).show()
【关注微信公众号获取更多学习资料】 【扫码进入Python全栈开发免费公开课】