+ 3
What is the use of a decorator and how is it used ?
i am confused with this concept of decorator and i have never seen it in use by anyone in their codes.Is it any useful in python program.
2 Réponses
+ 8
use decorators mainly for timing purposes
https://www.oreilly.com/ideas/5-reasons-you-need-to-learn-to-write-JUMP_LINK__&&__python__&&__JUMP_LINK-decorators
0
Here is an explanation of the decorator usage:
https://code.sololearn.com/cD09ijlIS6Ev/?ref=app