@log应该怎么调用啊?感觉打印不出来
@log def f1(x): return x*2 Traceback (most recent call last): File "<pyshell#20>", line 1, in <module> @log NameError: name 'log' is not defined >>> def f1(x): return x*2 >>> @log f1(2) SyntaxError: invalid syntax
@log def f1(x): return x*2 Traceback (most recent call last): File "<pyshell#20>", line 1, in <module> @log NameError: name 'log' is not defined >>> def f1(x): return x*2 >>> @log f1(2) SyntaxError: invalid syntax
2018-03-26
举报