EADST

Python: Obtain File Information and Size

Python: Obtain File Information and Size

import os

path = "/data/test.zip"
file_info = os.stat(path)
print(file_info)
file_size = os.path.getsize(path))
print(file_size)
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文266篇,共被浏览440951

本站已经建立2019天!

热门文章
文章归档
回到顶部