Commit 087671ee by BellCodeEditor

save project

parent 39ac5c63
Showing with 6 additions and 4 deletions
......@@ -4,10 +4,12 @@ print("玩家出:"+t)
O=["石头","剪刀","布"]
d=random.choice(O)
print("计算机出:"+d)
if t==d:
if t in O:
if t==d:
print("平局")
elif t=="石头" and d=="剪刀" or t=="剪刀" and d=="布" or t=="布" and d=="石头":
elif t=="石头" and d=="剪刀" or t=="剪刀" and d=="布" or t=="布" and d=="石头":
print("胜利")
else:
else:
print("失败")
else:
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