Commit 63b02416 by BellCodeEditor

save project

parent dc2260f6
Showing with 9 additions and 6 deletions
......@@ -5,12 +5,15 @@ print("玩家出拳:",a)
q=["拳头","布","剪刀"]
w=random.choice(q)
print("计算机出拳",a)
if a=w:
print("平局")
elif a="拳头" and w="剪刀" or a="布" and w="拳头" or a="剪刀" and w="布":
print("玩家赢")
elif w="拳头" and a="剪刀" or w="布" and a="拳头" or w="剪刀" and a="布":
print("玩家输")
if a in q:
if a=w:
print("平局")
elif a="拳头" and w="剪刀" or a="布" and w="拳头" or a="剪刀" and w="布":
print("玩家赢")
elif w="拳头" and a="剪刀" or w="布" and a="拳头" or w="剪刀" and a="布":
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