Pillow教程(一)

传统的PIL库不支持python3,因此使用从PIL派生出来的Pillow库。python Image类 Pillow中最重要的类就是Image,该类存在于同名的模块中。能够经过如下几种方式实例化:从文件中读取图片,处理其余图片获得,或者直接建立一个图片。web 使用Image模块中的open函数打开一张图片:sql from PIL import Image im = Image.open('
相关文章
相关标签/搜索