标签:root filter overflow == ice bin list python ons
def test_twice_filter():
list_a = [1, 2, 3, 4, 5]
x = filter(lambda m: m > 2, list_a)
y = filter(lambda n: n < 4, x)
print(list(y))
if __name__ == ‘__main__‘:
test_twice_filter()
结果:
ssh://root@250.250.250.250:250/usr/bin/python3.6 -u /home/dba/HAL_9000/dbAlertAPP/filters/misc_item_filter.py
[3]
参考阅读:
【Python】filter()的结果仍可以被filter()
标签:root filter overflow == ice bin list python ons
原文地址:http://blog.51cto.com/l0vesql/2328164