class sample 1
This commit is contained in:
parent
6c85752ff3
commit
ac58b39f12
10
python-temel/class.sample.py
Normal file
10
python-temel/class.sample.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
class Sample:
|
||||
x = 10
|
||||
|
||||
def foo(self):
|
||||
print("foo")
|
||||
|
||||
def bar(self):
|
||||
print("bar")
|
||||
|
||||
print(x)
|
Loading…
Reference in New Issue
Block a user