摘要: 直接上代码:import jsondef json_load(json_file): with open(json_file, 'r') as fh: content = json.load(fh) return content fh.close()def json_save(json_file, 阅读全文
posted @ 2023-12-15 11:42 Gloria_Chen 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 处理文件时发现这个错误: def Load_json(): json_file = 'C:\Python\assets\config.json' with open(json_file, 'r') as fh: data = json.load(fh) print(data) fh.close() 阅读全文
posted @ 2023-12-15 11:14 Gloria_Chen 阅读(76) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示