0
今、私のコードは、ゲーム内の最初のゲーム(start_idで識別される)を正しく吐き出しています。私は下の2行でインクリメントしようとしていますが、whileループはインクリメントしているという事実を読み取っていないようです。したがって、start_id 800とend_id 802でのこの入力は何らかの理由で800からの情報に過ぎません。ループインクリメンタが正常に機能していない
私は正しくインクリメンタを使用していますか?他の場所でiまたはstart_idのいずれかを初期化する必要がありますか?
games = console(start_id, end_id)
final_output = []
while start_id < (end_id + 1):
single_game = []
i = 0
game_id = games[i][0]
time_entries = games[i][1][2][0]
play_entries = games[i][1][2][1]
score_entries = games[i][1][2][2]
team_entries = games[i][1][2][3]
bovada = games[i][1][0][0][0]
at_capacity = games[i][1][0][1]
idisagree_yetrespect_thatcall = games[i][1][0][2][0]
imsailingaway = games[i][1][1][0][0]
homeiswheretheheartis = games[i][1][1][1][0]
zipper = zip(time_entries, play_entries, score_entries, team_entries)
for play_by_play in zipper:
single_game.append(game_id)
single_game.append(play_by_play)
single_game.append(bovada)
single_game.append(at_capacity)
single_game.append(idisagree_yetrespect_thatcall)
single_game.append(imsailingaway)
single_game.append(homeiswheretheheartis)
start_id += 1
i += 1
final_output.append(single_game)
return final_output