对基本的Python 对象层次结构进行编码:. >>> >>> import json ... json.dumps(2 + 1j, cls=ComplexEncoder) '[2.0, ... 从命令行使用 json.tool 来验证并梅花输出:.
確定! 回上一頁