Commit 09a183f3 by BellCodeEditor

save project

parent cdc552f9
Showing with 3 additions and 3 deletions
...@@ -5,7 +5,7 @@ nn = random.choice(list) ...@@ -5,7 +5,7 @@ nn = random.choice(list)
rr = input("请输入你的出拳") rr = input("请输入你的出拳")
if nn == rr: if nn == rr:
print("平局") print("平局")
elif nn == "石头": elif nn == "石头" and rr == "剪刀":
if rr == ""
print("你输了!继续加油哦!") print("你输了!继续加油哦!")
else: else nn == "剪刀" and rr == "石头":
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