摘要: import os from settings import dir_dict def traverse(dir): for ele_dir in dir: if ele_dir[1]: for i in ele_dir[1]: dir_name = os.path.join(ele_dir[0], 阅读全文
posted @ 2021-03-01 16:07 道友请留步W 阅读(108) 评论(0) 推荐(0) 编辑
摘要: dir_path = r"xxx" ret = os.walk(dir_path) dir_dict = {} def dir_walk(dir): for ele_dir in dir: if ele_dir[1]: for i in ele_dir[1]: dir_name = os.path. 阅读全文
posted @ 2021-03-01 14:51 道友请留步W 阅读(510) 评论(0) 推荐(0) 编辑