📜  使用 python 代码示例过滤列表

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

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

print(list(filtered))

# Output:
[70, 80, 90]