studentInfo={'id':'01','name':'张三','fav':['book','fruit']},如何获取值"fruit"?


studentInfo={'id':'01','name':'张三','fav':['book','fruit']},如何获取值"fruit"?

A.studentInfo['fav'][1]

B.studentInfo['fav'][2]

C.studentInfo['name'][1]

D.studentInfo['name'][2]

正确答案:A


Tag:Python程序设计基础 张三 时间:2022-07-07 15:42:52