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