Python包-json 发表于 2018-06-10 | 分类于 编程拾慧 , python 安装1pip install json 格式介绍123{"accesskeyID":"LTAI5tSRTFb****","accesskeysecret":"jAJGMov82****"} 数据读取123456789#!/usr/bin/env python3import jsonwith open('.aliyun.json') as f: data = json.load(f)# 获取值data['accesskeyID'] # LTAI5tSRTFb****data['accesskeysecret'] # jAJGMov82**** -------------本文结束感谢您的阅读-------------