/'''#test.json"time":"2017-04-25 "''freq'':98"power":-40'''/import json #引入json模块file=open('text.json','r') #text.json是我们想要读取的json文件info=json.load(file) time_info=info['time'] #读取json文件中的time字段对应的值print time_info #打印结果为2017-04-25