2020年2月6日
摘要: 使用 JSON 函数需要导入 json 库:import json。 函数描述 json.dumps 将 Python 对象编码成 JSON 字符串 json.loads 将已编码的 JSON 字符串解码为 Python 对象 一、编码 import json d={'谦谦':{'sex':'男', 阅读全文
posted @ 2020-02-06 14:37 yukizzc 阅读(134) 评论(0) 推荐(0)