Default input for python decorators and function input

后端 未结 0 366
深忆病人
深忆病人 2021-02-02 10:45

I want to write a decorator that has defaults if the decorator has no inputs and if the function it decorates has no inputs.

Here is an example is taken from Sebastiaan M

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