class type
This commit is contained in:
parent
1a0db0282c
commit
4d34b769cd
1 changed files with 7 additions and 0 deletions
7
python-temel/class.3.py
Normal file
7
python-temel/class.3.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
class Sample:
|
||||||
|
def foo(self):
|
||||||
|
print('foo')
|
||||||
|
|
||||||
|
s = Sample()
|
||||||
|
print(type(Sample))
|
||||||
|
print(type(s))
|
Loading…
Reference in a new issue