1 Star 0 Fork 0

chobit / 黑马课后代码练习

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
t11.py 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
chobit 提交于 2019-06-07 20:34 . '这是学习python课件练习版本'
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Data:.2019/3/17
class Game():
top_score = 0
def __init__(self,player_name):
self.player_name = player_name
@staticmethod
def show_help():
print("帮助信息提示")
@classmethod
def show_top_score(cls):
print("历史最好记录:%s"% cls.top_score)
def start_game(self):
print("%s ,开始游戏,..." %self.player_name )
Game.show_help()
Game.show_top_score()
game = Game('sunFlower')
game.start_game()
Python
1
https://gitee.com/chobit/itcast.git
git@gitee.com:chobit/itcast.git
chobit
itcast
黑马课后代码练习
master

搜索帮助