Commit 635b7bb0 by BellCodeEditor

save project

parent 07e0d8b8
Showing with 2 additions and 1 deletions
...@@ -6,7 +6,7 @@ print("玩家出拳为:"+player) ...@@ -6,7 +6,7 @@ print("玩家出拳为:"+player)
print("机器人出拳为:"+player_01) print("机器人出拳为:"+player_01)
if player == player_01: if player == player_01:
print("平局") print("平局")
elif player == "剪刀" & player_01 == "石头" | player == "石头" & player_01 =="布" | player == "布" & player_01 == "剪刀": elif player == "剪刀" and player_01 == "石头" or player == "石头" and player_01 =="布" or player == "布" and player_01 == "剪刀":
print("机器人胜利") print("机器人胜利")
else: else:
print("玩家胜利") 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