判官007 发表于 2018-8-16 07:40:53

Python 例子

def multiply(x):  
      return (x*x)
  
def add(x):
  
      return (x+x)
  

  
funcs =
  
for i in range(5):
  
    value = map(lambda x: x(i), funcs)
  
    print(list(value))
页: [1]
查看完整版本: Python 例子