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
相關文章
相關標籤/搜索