from PIL import Imageim = Image.open('whatever.png')width, height = im.size
根据文档。
上一篇 如何处理C ++返回类型std :: vector 在Python ctypes?
下一篇 如何在Python代码中找到未使用的函数?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号