Commit 57f52910 by BellCodeEditor

auto save

parent 087671ee
Showing with 1 additions and 15 deletions
import random
t=input("出什么?")
print("玩家出:"+t)
O=["石头","剪刀","布"]
d=random.choice(O)
print("计算机出:"+d)
if t in O:
if t==d:
print("平局")
elif t=="石头" and d=="剪刀" or t=="剪刀" and d=="布" or t=="布" and d=="石头":
print("胜利")
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