#测试过滤器，对列表进行过滤，只留下符合条件的元素

def fn(s):
    return s % 2 == 0
L = list(range(20))
print(list(filter(fn, L)))

aab4200a023cec8809f3ec6e7a994b9bce485d50
<mask token>

def fn(s):
    return s % 2 == 0


<mask token>

def fn(s):
    return s % 2 == 0


<mask token>
print(list(filter(fn, L)))

def fn(s):
    return s % 2 == 0


L = list(range(20))
print(list(filter(fn, L)))

#测试过滤器，对列表进行过滤，只留下符合条件的元素

def fn(s):
    return s % 2 == 0
L = list(range(20))
print(list(filter(fn, L)))
