Commit d5b8376e by BellCodeEditor

save project

parent 8b77414e
Showing with 16 additions and 0 deletions
...@@ -4,3 +4,19 @@ print("玩家出拳:"+player) ...@@ -4,3 +4,19 @@ print("玩家出拳:"+player)
a=["石头","剪刀","布"] a=["石头","剪刀","布"]
b=random.choice(a) b=random.choice(a)
print(b) print(b)
if a==b:
print("你平局了")
elif a=="石头" and b=="剪刀":
print("你赢了")
elif a=="布" and b=="石头":
print("你赢了")
elif a=="剪刀" and b=="布":
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