python filter函数

show2 = list(filter(lambda x:x % 2,range(20)))
print(show2)
原文地址:https://www.cnblogs.com/ssxsy/p/9127516.html