摘要: 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) 编辑