📜  从文件 python 3 加载 json - Python 代码示例

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

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