第27782题 单选题
运行下列Python代码,输出的结果是?

给定如下Python代码:

students = [{"name": "Alice", "score": 88}, {"name": "Bob", "score": 95}, {"name": "Charlie", "score": 92}]
top_student = max(students, key=lambda stu: stu["score"])
print(top_student["name"])
A

Alice

B

Bob

C

Charlie

D

代码运行报错

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析