舉個例子
壹般的函數是這樣:
def f(x):
return x+1
這樣使用 print f(4)
用lambda的話,寫成這樣:
g = lambda x : x+1
這樣使用 print g(4)