filter

过滤掉不符合条件的元素,返回由符合条件的元素组成的列表。

filter(fun, iterable)

fun返回的时True和False

原文地址:https://www.cnblogs.com/liujianing/p/13355885.html