1 #!/usr/bin/env python 2 #def f1(x) : 3 # return x > 22 4 ret = filter(lambda x : x > 22 ,[11,22,33,44]) 5 print(ret) 6 for i in ret : 7 print(i)
时间: 2024-10-27 03:31:03
1 #!/usr/bin/env python 2 #def f1(x) : 3 # return x > 22 4 ret = filter(lambda x : x > 22 ,[11,22,33,44]) 5 print(ret) 6 for i in ret : 7 print(i)