with open('json_test.json', 'w') as f:
json.dump(data, f)
2. 读取
with open('json_test.json', 'r') as f:
data = json.load(f)
欢迎分享,转载请注明来源:内存溢出
with open('json_test.json', 'w') as f:
json.dump(data, f)
2. 读取
with open('json_test.json', 'r') as f:
data = json.load(f)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)