Commit 581c43e6 by BellCodeEditor

save project

parent 937b533c
Showing with 11 additions and 2 deletions
......@@ -4,4 +4,14 @@ print("玩家出拳:"+player)
list=["石头","剪刀","布"]
#computer=input("请出拳(石头/剪刀/布")
num=random.choice(list)
print(num)
\ No newline at end of file
print(num)
if player==num:
print("平局")
elif player=="石头"and num=="剪刀":
print("玩家胜利")
elif player=="剪刀"and num=="布":
print("玩家胜利")
elif player=="布"and num=="石头":
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