1 """用Pythonp批量裁剪图片""" 2 3 from PIL import Image 4 import matplotlib.pyplot as plt 5 import os 6 7 # 定义待批量裁剪