Commit 7993255d by BellCodeEditor

save project

parent 3b0a68d3
Showing with 3 additions and 2 deletions
...@@ -4,8 +4,9 @@ import random ...@@ -4,8 +4,9 @@ import random
abc=["剪刀","石头","布"] abc=["剪刀","石头","布"]
ccc=random.choice(abc) ccc=random.choice(abc)
print("电脑出拳"+ccc) print("电脑出拳"+ccc)
if player==ccc if player==ccc:
print("平局")
elif(player=="剪刀" and ccc=="布") or (player=="剪刀" and ccc=="布")
......
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