单个参数的:
g = lambda x:x*2
print g(3)
结果是6
多个参数的:
m = lambda x,y,z: (x-y)*z
print m(3,1,2)
结果是4
转载于:https://www.cnblogs.com/seasonsstory/archive/2013/04/03/2997980.html
单个参数的:
g = lambda x:x*2
print g(3)
结果是6
多个参数的:
m = lambda x,y,z: (x-y)*z
print m(3,1,2)
结果是4
转载于:https://www.cnblogs.com/seasonsstory/archive/2013/04/03/2997980.html