本文整理汇总了Python中Game.Game.personal_fouls方法的典型用法代码示例。如果您正苦于以下问题:Python Game.personal_fouls方法的具体用法?Python Game.personal_fouls怎么用?Python Game.personal_fouls使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Game.Game
的用法示例。
在下文中一共展示了Game.personal_fouls方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from Game import Game [as 别名]
# 或者: from Game.Game import personal_fouls [as 别名]
new_game.date = game_date
if "at" in venue:
new_game.away = True
if (game[1] == '*'):
new_game.started = True
new_game.avg_points = game[-1]
new_game.points = game[-2]
new_game.steals = game[-3]
new_game.blocks = game[-4]
new_game.turnovers = game[-5]
new_game.assists = game[-6]
new_game.fouled_out = game[-7]
new_game.personal_fouls = game[-8]
new_game.avg_rebound = game[-9]
new_game.tot_rebound = game[-10]
new_game.def_rebound = game[-11]
new_game.off_rebound = game[-12]
new_game.ft_percent = game[-13]
ft = game[-14].split('-')[1]
fta = game[-14].split('-')[0]
new_game.fta = fta
new_game.ft = ft
new_game.fg_3_percent = game[-15]
fg_3 = game[-16].split('-')[0]
fga_3 = game[-16].split('-')[1]