非常感谢您的帮助
答案 0 :(得分:1)
在第124行中,您应该转换成int
以进行减法。然后更改为str
进行打印:
if Final2 > Final1:
print("Player 2 won round 1 by " + str(int(Final2) - int(Final1)) + " points")
elif Final1 > Final2:
print("Player 1 won round 1 by " + str(int(Final1) - int(Final2)) + " points")