t
Size: a a a
t
S
S
ЕП
S
Т
py3
class p(object):
x=1
class a(p):
pass
class b(a):
pass
print(p.x,a.x,b.x)
a.x=2
print(p.x,a.x,b.x)
p.x=3
print(p.x,a.x,b.x)
1 1 1
1 2 2
3 2 2
G
t
G
S
py3
class p(object):
x=1
class a(p):
pass
class b(a):
pass
print(p.x,a.x,b.x)
a.x=2
print(p.x,a.x,b.x)
p.x=3
print(p.x,a.x,b.x)
1 1 1
1 2 2
3 2 2
Т
Т
t
WJ
t
Т
t
q
q
Т