import os
import time
from PIL import Image
# import numpy as np
# import pandas as pd
# import PyInstaller
def getAlltree(all_path, dir_path,loads):
for name in os.listdir(dir_path):
full_path = os.path.join(dir_path, name)
if os.path.isfile(full_path):
fsize = os.path.getsize(full_path)
ftime = os.path.getmtime(full_path)
ftime = time.ctime(ftime)
# all = os.path.
fsize = fsize / float(1024)
if 'jpg' in full_path or 'png' in full_path:
# 位深度
image = Image.open(
r'{}'.format(full_path))
all = ''
all_dict = {
"L": "8",
"P": "8",
"RGB": "24",
python读取磁盘文件信息
最新推荐文章于 2024-04-27 14:18:24 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)