随笔分类 -  Python

摘要:常规方法 对指定目录下的指定类型文件进行遍历,可对文件名关键字进行条件筛选 返回值为文件地址的列表 import os # 定义一个函数,函数名字为get_all_excel,需要传入一个目录 def get_all_excel(dir): file_list = [] for root_dir, 阅读全文
posted @ 2020-12-20 18:39 Dapenson 阅读(3445) 评论(0) 推荐(0)