源代码
class MyClass: x = 7 p1 = MyClass() print(p1.x)
运行结果