摘要:
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], 阅读全文
摘要:
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. 阅读全文