📅  最后修改于: 2022-03-11 14:46:09.357000             🧑  作者: Mango
class MyClass(object):
i = 123
def __init__(self):
self.i = 345
a = MyClass()
print(a.i)
print(MyClass.i)
# Output:
# 345
# 123