Commit a2582cd6 by BellCodeEditor

save project

parent 7f913c27
Showing with 17 additions and 2 deletions
qwer=input("请出拳") qwer=input("请出拳")
print("玩家出:"+qwer) print("玩家出:"+qwer)
\ No newline at end of file import random
t =["石头","剪刀","布"]
y =random.choice(t)
print("电脑出:"+y)
if qwer in t:
if qwer==y:
print("平局")
elif (qwer=="石头"and y =="剪刀") or (qwer=="剪刀"and y=="布")or(qwer=="布"and y=="石头"):bubu
print("恭喜,你赢了")
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