注册 登录
编程论坛 Python论坛

json字符串读取问题

zcmu_python 发布于 2018-03-21 10:24, 1482 次点击
tmalljson={'rateDetail': {'paginator': {'items': 4356, 'lastPage': 99, 'page': 10}, 'rateCount': {'picNum': 49, 'shop': 0, 'total': 4590, 'used': 178}, 'rateDanceInfo': {'currentMilles': 1521525098179, 'intervalMilles': 131444321580, 'showChooseTopic': 'false', 'storeType': 4}, 'rateList': [{'aliMallSeller': 'false'}]}}
字符串如上,我想获取到ratelist中内容该如何索引
1 回复
#2
li3840222018-03-21 13:11
tmalljson={'rateDetail': {'paginator': {'items': 4356, 'lastPage': 99, 'page': 10}, 'rateCount':
                          {'picNum': 49, 'shop': 0, 'total': 4590, 'used': 178}, 'rateDanceInfo':
                          {'currentMilles': 1521525098179, 'intervalMilles': 131444321580, 'showChooseTopic':
                           'false', 'storeType': 4}, 'rateList': [{'aliMallSeller': 'false'}]}}
print(tmalljson['rateDetail']['rateList'])
        
1