🌈 搜索
📅  最后修改于: 2022-03-11 14:45:48.301000             🧑  作者: Mango
scores = [7, 6, 8, 9, 5] filtered = filter(lambda s: s >= 7, scores) print(list(filtered)) # prints [7, 8, 9]