复制代码 代码如下:
class Foo(object): x=1 if name=='main': foo = Foo() print 'foo.x=',foo.x print 'Foo.x=',Foo.x foo.x = 2 print 'foo.x=',foo.x print 'Foo.x=',Foo.x
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8