Python3 统计文件夹下文件数量2024-03-21 22:54:04import os path, dirs, files = next(os.walk("./d1")) print(len(files)) 参考 https://*.com/questions/2632205/how-to-count-the-number-of-files-in-a-directory-using-python 上一篇:Questions下一篇:mongo change stream