📌  相关文章
📜  python从文件中获取json内容 - Javascript代码示例

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

代码示例1
import json

with open('data.json') as json_file:
    data = json.load(json_file)
    for p in data['people']:
        print('Name: ' + p['name'])
        print('Website: ' + p['website'])
        print('From: ' + p['from'])
        print('')