Python取JSON嵌套属性值

以下代码示例:

import json

j='{"result":{"obj":{"f_date":"20200309","f_phone":"10086","f_channel":"","f_canals":"zt1","f_todayChar6":"202003"},"code":4,"info":"次数已经用完,请明天再试"}}'
data = json.loads(j)
print(data["result"]["info"])
# Python  

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×