会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fyangq
博客园
首页
新随笔
联系
订阅
管理
2021年1月18日
将返回的字典或者列表等数据写入json文件
摘要: import codesimport jsondef write_json(self,result,json_name): with codecs.open(json_name, "w", "utf-8") as f: j = json.dumps(result, indent=4, ensure_
阅读全文
posted @ 2021-01-18 10:50 fyangq
阅读(333)
评论(0)
推荐(0)
公告