Commit 07e0d8b8 by BellCodeEditor

auto save

parent ef8390f0
Showing with 2 additions and 1 deletions
......@@ -6,7 +6,7 @@ print("玩家出拳为:"+player)
print("机器人出拳为:"+player_01)
if player == player_01:
print("平局")
elif player == "剪刀" & player_01 == "石头" || player == "石头" & player_01 =="布" || player == "布" & player_01 == "剪刀":
elif player == "剪刀" & player_01 == "石头" | player == "石头" & player_01 =="布" | player == "布" & player_01 == "剪刀":
print("机器人胜利")
else:
print("玩家胜利")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment