class A(object): passclass B(A): def __init__(self): self.__a = "B#a" super(B, self).__init__() print("Construct B.")if __name__ == "__main__": B()
posted on 2019-05-24 17:16 阅读( ...) 评论( ...)
本文共 276 字,大约阅读时间需要 1 分钟。
class A(object): passclass B(A): def __init__(self): self.__a = "B#a" super(B, self).__init__() print("Construct B.")if __name__ == "__main__": B()
转载于:https://www.cnblogs.com/wenlin-gk/p/10919231.html