11智能在线
新记
如何用Python解析Json文件
如题所述
举报该文章
相关建议 2016-08-27
import json
s = json.loads('{"name":"test", "type":{"name":"seq", "parameter":["1", "2"]}}')
print s
print s.keys()
print s["name"]
print s["type"]["name"]
print s["type"]["parameter"][1]
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/f84qv8v4qvvsm74vqfm.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
如何用python读取json里面的值啊
如何用Python解析Json文件
如何用 Python 解析 ssl 证书文件
Python怎么读写json格式文件
Python怎么读写json格式文件
Python怎么读写json格式文件
怎样用python解析json