摘要: #file_names为存放文件夹名的列表def file_name_order(file_names): for i in range(len(file_names)): file_names[i]=int(file_names[i]) file_names.sort() for i in ran 阅读全文
posted @ 2021-12-10 17:03 梁哲 阅读(111) 评论(0) 推荐(0)
摘要: 直接使用 json.load(“ file_path ”) 读取json文件: 会出现JSONDecodeError错误: 若先使用open函数打开文件,在使用json.load 打开,便可以正确读取。 阅读全文
posted @ 2021-12-10 16:23 梁哲 阅读(5404) 评论(2) 推荐(1)