-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht.py
62 lines (41 loc) · 942 Bytes
/
t.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
class Person:
def __init__(self,name= "Lian"):
self.name = name
class Puple(Person):
pass
class Puple_init(Person):
def __init__(self,age):
super(Puple_init, self).__init__()
self.age = age
p = Puple()
p2 = Puple_init(20)
# print(p.name)
# print(p2.name,p2.age)
class A:
def __init__(self):
print('A')
class B(A):
def __init__(self):
print('B')
super().__init__()
class C(A):
def __init__(self):
print('C')
super().__init__()
class D(A):
def __init__(self):
print('D')
super().__init__()
class E(B, C):
def __init__(self):
print('E')
super().__init__()
class F(C, D):
def __init__(self):
print('F')
super().__init__()
class G(E, F):
def __init__(self):
super().__init__()
print('G')
g = G()