Commit 5102457a by BellCodeEditor

auto save

parent 1c3dbb96
Showing with 3 additions and 3 deletions
as=input("玩家请出拳:") a=input("玩家请出拳:")
print("玩家出拳"+as) print("玩家出拳"+a)
import random import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
w=random.choice(list) w=random.choice(list)
...@@ -8,7 +8,7 @@ if player == computer: ...@@ -8,7 +8,7 @@ if player == computer:
print("平局") print("平局")
else: else:
print("你输了!") print("你输了!")
elif (as=="石头" and z=="剪刀") or (as=="剪刀" and z=="布") or (as=="布" and z=="石头"): else (a=="石头" and w=="剪刀") or (a=="剪刀" and w=="布") or (a=="布" and w=="石头"):
print("你赢了!") 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