Commit b24f2cd2 by BellCodeEditor

save project

parent 29aaf432
Showing with 12 additions and 7 deletions
import random
t = input("玩家请出拳(石头/剪刀/布):")
print("玩家了:"+t)
print("玩家了:"+t)
list = ["石头","剪刀","布"]
y = random.choice(list)
print("电脑出了:"+y)
if t==y:
print("伏特加出来:"+y)
if t in list:
print("输入正确")
if t==y:
print("平局")
elif t=="石头" and y=="剪刀":
elif t=="石头" and y=="剪刀":
print("赢了")
elif t=="布" and y=="石头":
elif t=="布" and y=="石头":
print("赢了")
elif t=="剪刀" and y=="布":
elif t=="剪刀" and y=="布":
print("赢了")
else:
else:
print("输了")
else:
print("??????")
\ No newline at end of file
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