Initial commit
This commit is contained in:
15
Solutions/7_2/sample.py
Normal file
15
Solutions/7_2/sample.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# sample.py
|
||||
|
||||
from logcall import logged, logformat
|
||||
|
||||
@logged
|
||||
def add(x,y):
|
||||
return x+y
|
||||
|
||||
@logged
|
||||
def sub(x,y):
|
||||
return x-y
|
||||
|
||||
@logformat('{func.__code__.co_filename}:{func.__name__}')
|
||||
def mul(x,y):
|
||||
return x*y
|
||||
Reference in New Issue
Block a user