Python3 统计文件夹下文件数量

import os

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

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