正文python学习笔记十六:读取JSON文件IP云V管理员/2022-07-23/5 阅读 07/23提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 读取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