python 直接从文件json 序列化和反序列化
with open('request1.json', 'r',encoding='utf8') as f:
data_json = json.load(f)
with open('request1.json', 'w', encoding='utf8') as f:
json.dump(data_json, f, ensure_ascii=False, indent=4)
本文来自博客园,作者:vx_guanchaoguo0,转载请注明原文链接:https://www.cnblogs.com/guanchaoguo/p/18411835