This commit is contained in:
2015-06-11 17:16:27 +02:00
commit aebbb53090
6 changed files with 387 additions and 0 deletions

22
test2.py Normal file
View File

@ -0,0 +1,22 @@
'''
Created on 11.06.2015
@author: dehottgw
'''
class A(object):
def __init__(self, x):
self.x = x
def out(self):
print("X is %s" % self.x)
class B(A):
pass
a = A('abc')
a.out()
b = B('xyz')
b.out()