Commit 6f3cf3e7 by BellCodeEditor

save project

parent 7d157ad3
Showing with 3 additions and 5 deletions
...@@ -6,8 +6,6 @@ a=random.choice(list) ...@@ -6,8 +6,6 @@ a=random.choice(list)
print("计算机出拳:"+a) print("计算机出拳:"+a)
if player==a: if player==a:
print("平局") print("平局")
elif: elif (player=="石头" and a=="剪刀") or (player=="剪刀" and a=="布") or (player=="布" and a=="石头"):
(player=="石头" and a=="剪刀") or (player=="剪刀" and a=="布") or (player=="布" and a=="石头"):
print("玩家获胜") print("玩家获胜")
else: else: print("计算机获胜")
print("计算机获胜") \ No newline at end of file
\ 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