Python3 统计文件夹下文件数量

import os

path, dirs, files = next(os.walk("./d1"))
print(len(files))

posted @ 2020-11-12 08:59  王小右  阅读(578)  评论(0编辑  收藏  举报