Commit 4c067bc2 by BellCodeEditor

save project

parent 5b77739f
Showing with 10 additions and 1 deletions
...@@ -5,4 +5,13 @@ import random ...@@ -5,4 +5,13 @@ import random
list["石头"] list["石头"]
shitou=random.choice(list) shitou=random.choice(list)
print("电脑出拳:"+shitou) print("电脑出拳:"+shitou)
if player==computer:
print("平局")
elif player=='石头' and computer=='剪刀'
print("玩家赢")
elif player=='石头' and computer=='剪刀'
print("玩家赢")
elif player=='石头' and computer=='剪刀'
print("玩家赢")
elif player=='石头' and computer=='剪刀'
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