dekoratör örneği 5
This commit is contained in:
parent
f0a328a4e3
commit
28a8352a96
10
python-temel/dekorator.5.py
Normal file
10
python-temel/dekorator.5.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
def foo(f):
|
||||
print('araya girilen kod')
|
||||
return f
|
||||
|
||||
@foo
|
||||
def bar():
|
||||
print('bar')
|
||||
|
||||
bar()
|
||||
bar()
|
Loading…
Reference in New Issue
Block a user