📜  编写 json pythonb - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:12.963000             🧑  作者: Mango

代码示例3
>>> jstr = json.dumps(data, ensure_ascii=False, indent=4)
>>> print(jstr)
{
    "item": "Beer",
    "cost": "£4.00"
}