@怎么使用呢?请指导,谢谢!
@new_fn def f1(x): return x*2 print f1(5)
报错如下:new_fn没有被定义,是还需要def new_fn():吗?
@new_fn
NameError: name 'new_fn' is not defined
@new_fn def f1(x): return x*2 print f1(5)
报错如下:new_fn没有被定义,是还需要def new_fn():吗?
@new_fn
NameError: name 'new_fn' is not defined
2017-09-17
举报