📜  过滤列表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:03.626000             🧑  作者: Mango

代码示例2
scores = [70, 60, 80, 90, 50]
filtered = filter(lambda score: score >= 70, scores)

print(list(filtered))
Code language: Python (python)