1. 首页
  2. 数据库
  3. 其它
  4. python中将字典转换成其json字符串

python中将字典转换成其json字符串

上传者: 2020-12-31 15:01:32上传 PDF文件 32.71KB 热度 18次
#这是Python中的一个字典 dic = { 'str': 'this is a string', 'list': [1, 2, 'a', 'b'], 'sub_dic': { 'sub_str': 'this is sub str', 'sub_list': [1, 2, 3] }, 'end': 'end' } //这是javascript中的一个JSON对象 json_obj = { 'str': 'this is a string', 'arr': [1, 2, 'a', 'b'], 'sub_obj': { 'sub_str': 'this is sub str',
下载地址
用户评论