python学习笔记十六:读取JSON文件

python学习笔记十六:读取JSON文件

读取JSON文件可以用JSON库,示例代码:#coding:utf-8import jsonwith open(msg.json) as jsonfile:json_data = json.load(jsonfile)for key in json_data:val = json_data[key]print key + t + val

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部