Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

python 保存json

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)


版权声明:本文为weixin_40132776原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_40132776/article/details/125314183
文章导航
←【写博客常用】Word文档粘贴图片显示不全怎么办
深度学习之卷积神经网络→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1