会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
topass123
道阻且长,行则将至,行而不辍,未来可期
博客园
首页
新随笔
联系
订阅
管理
2020年5月18日
json的load,dump的四个方法解释
摘要: json.dumps()实现python类型转化为json字符串,返回一个str对象 ,把一个Python对象编码转换成Json字符串 ,如果直接将dict类型的数据写入json文件中会发生报错 import json import chardet listStr = [1, 2, 3, 4] tu
阅读全文
posted @ 2020-05-18 07:45 topass123
阅读(3329)
评论(0)
推荐(0)
编辑