nums = [11, 22, 33, 44, 55] res = list(filter(lambda x: x%2==0, nums)) print(res)
结果:
>>> [22, 44] >>>
0