<p>在我的Python游戏中,我做了一个掷骰子的游戏,如果你猜对了数字,我就开始工作了,但是我正在尝试开发一个更高或更低的部分</p>
<p>但在我的代码中,如果值是3,你说得更高,它会说你赢了。你知道吗</p>
<p>示例<code>#debug (5)
Would you like to bet on higher or lower <h:l> <: l
You won congrats!
</code>
但我应该在这里输而不是赢。你知道吗</p>
<pre><code> elif user_nh == 'high':
print(system_number)
hiLo = str(input("Would you like to bet on higher or lower <h:l> <: "))
if hiLo == 'l' and system_number == 1 or system_number == 2 or system_number == 3:
print("You won congrats")
pa = str(input("Would you like to play again y/n :> "))
if pa == 'n':
break
if pa == 'y':
continue
else:
print("You supplied a invalid response, quitting game.")
break
if hiLo == 'h' and system_number == 4 or system_number == 5 or system_number == 6:
print('You won congrats!')
pa = str(input("Would you like to play again y/n :> "))
if pa == 'n':
break
if pa == 'y':
continue
else:
print("You supplied a invalid response, quitting game.")
break
</code></pre>