filter函数用法
filter函数:
>>> li [11, 22, 33, 44] >>> filter(func,li) <filter object at 0x0000000002FFC400> >>> new_li2=filter(func,li) >>> print(list(new_li2)) [44]
filter函数:
>>> li [11, 22, 33, 44] >>> filter(func,li) <filter object at 0x0000000002FFC400> >>> new_li2=filter(func,li) >>> print(list(new_li2)) [44]