Why function passed as argument to decorator calls its inner function

前端 未结 0 610
后悔当初
后悔当初 2020-12-01 02:29

why func(n) at line 4 calls inner function n times, not only original function fact.

def log(func):
    def inner(n):
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题