api返回了一段json想要取出‘id'下的值并输出应该如何遍历?python只会一点简单的语法
如下图的“songs”中的"id": 1933232289
在json中出现了多次,想遍历输出应该如何操作,
问题相关代码,请勿粘贴截图
"songs": [
{
"name": "slow ride",
"id": 1933232289,
"pst": 0,
"t": 0,
"ar": [
{
"id": 12919519,
"name": "Matt吕彦良",
"tns": [],
"alias": []
},
{
"id": 10473,
"name": "袁娅维TIA RAY",
"tns": [],
"alias": []
}
],
},
{
"name": "是我",
"id": 1432632134,
"pst": 0,
"t": 0,
"ar": [
{
"id": 33913095,
"name": "KIND",
"tns": [],
"alias": []
}
],
},