fix python 2,3 print format error

This commit is contained in:
Dong Yan 2017-12-25 16:35:43 +08:00
parent 64da200e5d
commit fcb160dff6

View File

@ -143,7 +143,7 @@ if __name__ == '__main__':
prob = eval(prob) prob = eval(prob)
data.probs.append(prob) data.probs.append(prob)
score = player[turn].run_cmd(str(num) + ' get_score') score = player[turn].run_cmd(str(num) + ' get_score')
print("Finished : ", score.split(" ")[1]) print("Finished : {}".format(score.split(" ")[1]))
# TODO: generalize the player # TODO: generalize the player
if eval(score.split(" ")[1]) > 0: if eval(score.split(" ")[1]) > 0:
data.winner = 1 data.winner = 1