def func(d): print("this is func"); print(d); def func8(x): print(x); return func8; func(20)(9)
输出是:
this is func 20 9
简单明了
Python 函数两括号()() ()(X)的语法含义
原文:https://www.cnblogs.com/yu-jie/p/9746528.html