Function Decorators | Python | `@` Syntax

preview_player
Показать описание
Decorators are higher-order functions that take in a function as a parameter and return a wrapped version of it.

#python as a neat syntax to apply decorators using the '@' symbol. The decorated functions behave in their modified way every time they are called.
Рекомендации по теме