10 2021 档案
摘要:def clean_empty(d): """ 清除字典中值为空的键值对 """ if not isinstance(d, (dict, list)): return d if isinstance(d, list): return [v for v in (clean_empty(v) for v
阅读全文
摘要:def list_allfile(path, all_files=[], all_py_files=[]): if os.path.exists(path): files = os.listdir(path) else: print('this path not exist') for file i
阅读全文