python3: 以 函数为参数的函数: def square(x): return x**2 a=map(square,range(5)) list(a) Out[10]: [0, 1, 4, 9, 16]