Files
Python-2019/Tests/classmethod test.py
2019-10-28 19:56:43 +01:00

12 lines
158 B
Python

class Test:
v=1
def __init__(self):
self.v=1
@staticmethod
def test(cls,self):
print(cls.v,self.v)
t=Test()
print(t.test())