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