class A:
"""
"""
def __init__(self):
self.a = 1
self.b = 2
B = A
class A(A):
"""
"""
def __init__(self):
super().__init__()
self.d = 0
self.b = 2
class A(A, B):
"""
"""
def __init__(self):
super().__init__()
self.c = 3
self.a = 12
class A(A, B):
"""
"""
def __init__(self):
super().__init__()
self.c = 6
self.a = 98
a = A()
print(a.__dict__)
python 的奇葩语法之“我爹是我”
最新推荐文章于 2024-11-08 13:43:44 发布