应遵循以下代码:
class C:
x = 0
@classmethod
def increment1(cls):
cls.x += 1
@classmethod
def increment2(cls):
C.x += 1
@staticmethod
def increment3():
C.x += 1
方法increment1
,increment2
和increment3
之间是否有区别?