THE DECORATION PROBLEMS OF RECURSION FUNCTION. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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

22nd Oct 2019, 8:56 AM
Keskil
Keskil - avatar
2 Antworten
0
Ой как сложно!
10th Nov 2019, 1:30 PM
Игорь Олипа
Игорь Олипа - avatar
0
Спасибо за коммент. Как проще сделать?
10th Nov 2019, 2:04 PM
Keskil
Keskil - avatar