例子:
class a():
def __init__(self):
self.outer_a = 'out-a'
def printa(self):
self.b().printb()
class b():
def __init__(self):
self.inner_b = 'inner-b'
def printb(self):
print a().outer_a
t_a = a()
t_a.printa()