本文整理汇总了Python中team.Team.print_stats方法的典型用法代码示例。如果您正苦于以下问题:Python Team.print_stats方法的具体用法?Python Team.print_stats怎么用?Python Team.print_stats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类team.Team
的用法示例。
在下文中一共展示了Team.print_stats方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
# 需要导入模块: from team import Team [as 别名]
# 或者: from team.Team import print_stats [as 别名]
game.set_qtr_score(2, score)
if "End of 3rd quarter" in line:
game.set_qtr_score(3, score)
if "End of 4th quarter" in line:
# TODO: Overtime games
game.set_qtr_score(4, score)
print "END OF GAME"
break
for i in range(len(game_lines)):
line = game_lines[i]
if 'Lost' in line or 'Won' in line:
away.get_streak(line)
home.get_streak(game_lines[i+3])
break
# Score = away - home
game.set_teams(home, away, score)
game.summarize()
print '--'
home.print_stats()
print '--'
away.print_stats()
for k, v in game.home_quarterly.iteritems():
print k, v
for k, v in game.away_quarterly.iteritems():
print k, v