类方法
@classmethod
def add_num(cls):
调用方法
类名.方法名
实例.方法名
静态方法
@staticmethod
def print_menu():
调用
实例名.方法名