filter

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

filter(fun, iterable)

fun返回的时True和False

posted @ 2020-07-21 16:39  6+0  阅读(95)  评论(0编辑  收藏  举报