1 def fun1(a1,a2): 2 3 return a1+a2 4 #fun1与fun2相同 5 fun2=lambda a1,a2:a1+a2 6 re=fun2(1,2) 7 print(re) 8 #输出:3