python filter内建函数
filter(function, iterable)Construct a list from those elements of iterable for which function returns true. iterable may be either a sequence, a container which supports iteration, or an iterator. If iterable is a string or a tuple, the result also has that type; otherwise it is always a list. If function is None, the> Note that filter(function, iterable) is equivalent to if function is not None and if function is None.
页:
[1]