看下面一个例子就知道了
def func(d): print("this is func"); print(d); def func8(x): print(x); return func8; func(20)(9)
输出是:
this is func 20 9
简单明了
def func(d): print("this is func"); print(d); def func8(x): print(x); return func8; func(20)(9)
输出是:
this is func 20 9
简单明了