EADST

Python: Load and Save A JSON File

Python: Load and Save A JSON File

import json

# load a json file
with open('data.json', 'r') as f:
    data = json.load(f)

# save a file as the json
with open('data.json', 'w') as f:
    json.dump(data, f)
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文266篇,共被浏览440569

本站已经建立2019天!

热门文章
文章归档
回到顶部