写入 JSON 数据
with open(‘data.json’, ‘w’) as f:
json.dump(data, f)
读取数据
with open(‘data.json’, ‘r’) as f:
data = json.load(f)
dict string to dict 问题
https://www.cnblogs.com/OnlyDreams/p/7850920.html
with open(‘data.json’, ‘w’) as f:
json.dump(data, f)
with open(‘data.json’, ‘r’) as f:
data = json.load(f)
https://www.cnblogs.com/OnlyDreams/p/7850920.html