coursesa课程 Python 3 programming Anonymous functions with lambda expressions lambda表达式
程序员文章站
2024-03-14 10:01:28
...
def f(x):
return x - 1
print(f)
print(type(f))
print(f(3))
print(lambda x: x-2)
print(type(lambda x: x-2))
print((lambda x: x-2)(6))