Commit dc2260f6 by BellCodeEditor

save project

parent d19c37f1
Showing with 6 additions and 2 deletions
......@@ -5,8 +5,12 @@ 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("玩家输")
......
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