Loading

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 阅读全文
posted @ 2021-10-29 15:06 就学45分钟 阅读(615) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-10-09 17:40 就学45分钟 阅读(406) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩