+ 1
THE DECORATION PROBLEMS OF RECURSION FUNCTION.
The problem 1. You can't use another name of decorated function, because recursion. The problem 2. I can't find the way to change the parameter of decoration. My solution is simple, you just need to save the undecorated function, and use it for resetting of decorations. MAY BE THERE IS ANOTHER WAY? AND HOW CHANGE THE PARAMRTER WHEN YOU USE @? https://code.sololearn.com/cLVwQuD9l9yq/?ref=app https://code.sololearn.com/cLVwQuD9l9yq/?ref=app https://code.sololearn.com/cLVwQuD9l9yq/?ref=app
2 Antworten
0
Ой как сложно!
0
Спасибо за коммент. Как проще сделать?