# -*- coding: UTF-8 -*-
# 作者：huanhuilong
# 标题：函数式编程
# 描述：高阶函数, filter 过滤偶数

def test():
    list = [1, 2, 3, 4, 5, 6]
    for v in filter(lambda v: v % 2 == 0, list):
        print(v)


if __name__ == '__main__':
    test()
