DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
basic decorator example
def log_result(func): def inner(): res = func() print(res) return res
Source by python.plainenglish.io #
PREVIOUS
NEXT
Tagged:
#basic
#decorator
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit