lambdTesting=lambda x: x*3 print(lambdTesting(5)) 输出 15
像C#一样传递lambda表达式:
def abc(t,a): return t(a) print(abc(lambdTesting,15))
输出:
45
2022-09-13 19:57:16
lambdTesting=lambda x: x*3 print(lambdTesting(5)) 输出 15
像C#一样传递lambda表达式:
def abc(t,a): return t(a) print(abc(lambdTesting,15))
输出:
45