第31004题 单选题
运行如下Python代码,最终输出的结果是?
scores = [("张三", 85), ("李四", 92), ("王五", 78), ("赵六", 95)]
# 使用字典推导式筛选分数大于等于90的条目
new_dict = {name: score for name, score in scores if score >= 90}
new_dict["孙七"] = 88
print(new_dict.get("李四", 0) + new_dict.get("孙七", 0))
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析