class Info: def __init__(self, name): self.name = name # 实例变量 @classmethod def fetch(cls): print(cls) Info.fetch() # 调用静态方法,不需要创建对象,也不需传self参数