📜  打开 json 文件 python - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:07.235000             🧑  作者: Mango

代码示例6
import json

with open('path_to_file/person.json') as f:
  data = json.load(f)
print(data)

flx = json.dumps(data, ensure_ascii=False, indent=4)
print(flx)