为什么想输出 call factorial() in 时,代码会出错?
1、错误显示:
Traceback (most recent call last): File "index.py", line 19, in print factorial(10) File "index.py", line 9, in fn print 'call' + f._name_ + 'in' AttributeError: 'function' object has no attribute '_name_'
2、如果能解释一下标准答案中,print 'call %s() in %fs' % (f.__name__, t) 是什么意思就更好了!