📅  最后修改于: 2022-03-11 14:46:54.508000             🧑  作者: Mango
# Class Method Implementation in python
class Student:
name = 'Student'
def __init__(self, a, b):
self.a = a
self.b = b
@classmethod
def info(cls):
return cls.name
print(Student.info())