python实现旋转和水平翻转

# coding=utf-8 import glob import os from PIL import Image def rotate_270( imgae): """ 将图片旋转270度 """ # 读取图像 im = Image.open(imgae) # im.show() # 指定逆时针旋转的角度 im_rotate = im.rotate( 270) # im_rotate.show
相关文章
相关标签/搜索