import json
data=[{'d':1,'c':[{'label':2,'points':3}],'type':'pl'}]
# print(data2)
with open('data.json', 'w') as f:
json.dump(data, f)
python 保存json
最新推荐文章于 2024-07-20 03:54:32 发布
import json
data=[{'d':1,'c':[{'label':2,'points':3}],'type':'pl'}]
# print(data2)
with open('data.json', 'w') as f:
json.dump(data, f)