【问题标题】:How to find the size of an image in bytes using python? [closed]如何使用python以字节为单位查找图像的大小? [关闭]
【发布时间】:2019-12-10 09:05:04
【问题描述】:

我无论如何都找不到以字节为单位打印图像的大小。

【问题讨论】:

标签: python python-3.x python-2.7 python-imaging-library


【解决方案1】:

您可以简单地使用os。

import os
os.path.getsize('test.jpg')

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-01-22
    • 1970-01-01
    • 1970-01-01
    • 2013-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多