init.py
This commit is contained in:
parent
bf63548275
commit
194163d543
10
python-temel/init.py
Normal file
10
python-temel/init.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
class Sample:
|
||||
def __init__(self):
|
||||
self.a = 10
|
||||
self.b = 20
|
||||
|
||||
def disp(self):
|
||||
print(self.a, self.b)
|
||||
|
||||
x = Sample()
|
||||
x.disp()
|
Loading…
Reference in New Issue
Block a user