Commit 0e2eaf1c by BellCodeEditor

save project

parent 8f3a12c1
Showing with 30 additions and 1 deletions
......@@ -5,8 +5,37 @@ list=["石头","剪刀","布"]
computer = random.choice(list)
print("布尔什维克出拳:"+player)
print("资本家出拳:"+computer)
if player == computer
if player == computer:
print("平局")
elif player=="石头" and computer=="布":
print("很遗憾,同志,这场革命我们没赢")
elif player=="剪刀" and computer=="石头":
print("很遗憾,同志,这场革命我们没赢")
elif player=="布" and computer=="剪刀":
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