
复制$ python2             Python 2.7.10 (default,隆过滤器
 Oct 6 2017, 22:29:07)             [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin             Type "help", "copyright", "credits"or"license"for more information.             >>> s = {2, 4}             >>> filter(lambda x:x in s, [0, 1, 2])             [2]             1.2.3.4.5.6.7.      
作者:应用开发