class student():position='即令'def __init__(self,name,age):self.name=nameself.age=agedef eat(self):pass@classmethoddef cla(cls):pass@staticmethoddef sta():passpassstu=student(name='张三',age='12') print(stu.position)stu.sta() stu.cla()# 直接使用静态和类方法 student.cla() student.sta()# 动态邦参def show():pass stu.show=show stu.show()