摘要: Variables declared inside the class definition, but not inside a method are class or static variables:>>> class MyClass:... i = 3...>>> MyClass.i3 As @Daniel points out, this creates a class-level "i" variable, but this is distinct from any instance-level "i" va 阅读全文
posted @ 2012-03-06 10:45 功夫 熊猫 阅读(1976) 评论(0) 推荐(0)