第12054题 判断题
判断Python列表推导式能否生成指定的符合条件的列表

已知numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] 小明编写了以下代码:

result = [x for x in numbers if x % 2 == 0 and x > 10]

预期生成列表为[10,12,14]

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析