class other 2
This commit is contained in:
parent
38285afbab
commit
7998912b9e
6
python-temel/class.sample.other.2.py
Normal file
6
python-temel/class.sample.other.2.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
class Sample:
|
||||
x = 10
|
||||
|
||||
s = Sample()
|
||||
print(s.x) # 10
|
||||
print(Sample.x) # 10
|
Loading…
Reference in New Issue
Block a user