PYTHON关于提取返回JSON结果中特定字段的问题答:import json dic = { 'str': 'this is a string','list': [1, 2, 'a', 'b'],'sub_dic': { 'sub_str': 'this is sub str','sub_list': [1, 2, 3]},'end': 'end'} json.dumps(dic)output:'{"sub_dic": {"sub_str": "this is sub str", "sub_list": [1, ...
php 读取 json 里面的字段内容答:3,"全脑":2,"全脑1":1},"score":{"左脑":8,"右脑":14,"全脑":15,"全脑1":8},"pingjun":{"左脑":4,"右脑":4.6666666666667,"全脑":7.5,"全脑1":8}}]';$de_json = json_decode($postArray, true);echo $de_json[0]['pingjun']['左脑'];?>json 数组结构如图:...