摘要: 使用python遍历文件夹下的子文件夹及文件,并统计出文件夹下文件的数量: 1 import os 2 count = 0 3 4 5 # 遍历文件夹 6 def walkFile(file): 7 for root, dirs, files in os.walk(file): 8 # root 表 阅读全文
posted @ 2020-03-04 18:30 奔奔-武 阅读(7736) 评论(1) 推荐(3) 编辑