Commit 2d5080ba by BellCodeEditor

save project

parent 95f868a3
Showing with 3 additions and 1 deletions
...@@ -12,7 +12,9 @@ while True: ...@@ -12,7 +12,9 @@ while True:
elif z=="石头" and x=="剪刀": elif z=="石头" and x=="剪刀":
print("玩家胜") print("玩家胜")
elif z=="布" and x=="石头": elif z=="布" and x=="石头":
print("玩家胜") print("玩家胜")
elif z not in i:
print("输入错误")
else: else:
print("电脑胜") print("电脑胜")
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