摘要: #创建新的类实例并把该对象赋给局部变量x,x为空的对象 class MyClass: """a simple example""" i = 12345 def f(self): return 'hello world' x = MyClass() print("MyClass 类的i属性为:",x. 阅读全文