adding all files done so far
This commit is contained in:
14
learning/import-args/script1.py
Normal file
14
learning/import-args/script1.py
Normal file
@@ -0,0 +1,14 @@
|
||||
def my_decorator(func):
|
||||
def wrapper():
|
||||
print('Something happening before the func is called.')
|
||||
func()
|
||||
print('Something happening after the func is called.')
|
||||
return wrapper
|
||||
|
||||
|
||||
@my_decorator
|
||||
def say_whee():
|
||||
print('Whee!')
|
||||
|
||||
|
||||
say_whee()
|
||||
Reference in New Issue
Block a user