Python 装饰器兼容加括号与不加括号的写法 ... if len(args) == 1 and len(kwargs) == 0 and callable(args[0]): # actual decorated function.
確定! 回上一頁