在Python Tutorial中对于类变量和实例变量是这样描述的:

 Generally speaking, instance variables are for data unique to each instance and class variables are for attributes and methods shared by all instances of the class:

通常来说,实例变量是对于每个实例都独有的数据,而类变量是该类所有实例共享的属性和方法。

python类变量和实例变量区别