比如说
class Spam: x = 1
Spam.x 和Spam().x该怎么理解
Spam.x 通过类来访问类的变量Spam().x,这里生成一个类的实例,然后访问实例的变量http://blog.csdn.net/chenggong2dm/article/details/9030481