541 B
541 B
id | title | challengeType | videoId | dashedName |
---|---|---|---|---|
5e7b9f140b6c005b0e76f07d | Web 服務:JSON | 11 | ZJE-U56BppM | web-services-json |
--question--
--text--
這些代碼會打印出什麼?
import json
data = '''
[
{ "id" : "001",
"x" : "2",
"name" : "Quincy"
} ,
{ "id" : "009",
"x" : "7",
"name" : "Mrugesh"
}
]
'''
info = json.loads(data)
print(info[1]['name'])
--answers--
Quincy
Mrugesh
001
009
[Error](錯誤)
--video-solution--
2