当然,还有一个库方法可以做到这一点:method Image.thumbnail。 以下是PIL文档中的一个(经过编辑的)示例。 import os, sys import Image size = 128, 128 for…
確定! 回上一頁