dekoratör örneği 2
This commit is contained in:
parent
ef072b5018
commit
b7d46c45a2
2 changed files with 12 additions and 0 deletions
4
python-temel/dekorator.2.py
Normal file
4
python-temel/dekorator.2.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
class Sample:
|
||||
@staticmethod
|
||||
def foo():
|
||||
print('static foo method')
|
8
python-temel/dekorator.3.py
Normal file
8
python-temel/dekorator.3.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
class Sample:
|
||||
def foo():
|
||||
print('static foo method')
|
||||
|
||||
foo = staticmethod(foo)
|
||||
|
||||
|
||||
Sample.foo()
|
Loading…
Reference in a new issue