本文整理汇总了Python中team.Team.get_teamname方法的典型用法代码示例。如果您正苦于以下问题:Python Team.get_teamname方法的具体用法?Python Team.get_teamname怎么用?Python Team.get_teamname使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类team.Team
的用法示例。
在下文中一共展示了Team.get_teamname方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: which_team
# 需要导入模块: from team import Team [as 别名]
# 或者: from team.Team import get_teamname [as 别名]
possession = line
side = which_team(possession)
if side == 1:
score, summary = clean_up(line)
home.stats_tracker(score + " " + summary)
elif side == 2:
score, summary = clean_up(line)
away.stats_tracker(score + " " + summary)
else:
print 'should never be here?'
#print score, summary
#continue
if "<th>Time</th>" in line and start == 0:
away.get_teamname(pbp_lines[i+1])
home.get_teamname(pbp_lines[i+3])
print away.team_name, "VS", home.team_name
if "Start of 1st quarter" in line:
start = 1
continue
if "End of 1st quarter" in line:
game.set_qtr_score(1, score)
if "End of 2nd quarter" in line:
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"