class Game:
top_stor=0
def __init__(self, name):
self.name = name
@staticmethod
def show_help():
print("帮助信息,让僵尸进入大门")
@classmethod
def show_top_score(cls):
print("历史最高分是%s" % cls.top_stor)
def star_game(self):
print("%s开始游戏了" % self.name)
# 查看游戏信息
Game.show_help()
# 查看游戏最高分
Game.show_top_score()
# 创建游戏对象
player = Game("小明")
player.star_game()