Commit 89c76b4c by BellCodeEditor

auto save

parent 23ea8f3c
Showing with 8 additions and 0 deletions
...@@ -5,6 +5,14 @@ print("玩家出拳:"+player) ...@@ -5,6 +5,14 @@ print("玩家出拳:"+player)
m=["石头","剪刀","布"] m=["石头","剪刀","布"]
computer=random.choice(m) computer=random.choice(m)
print("电脑出拳:"+computer) print("电脑出拳:"+computer)
if m in player:
if m == player:
print("平局")
elif(m = "石头" or player = "布"),(m = "布" or player = "剪刀"),(m = "剪刀" or player = "石头")
print("电脑赢")
else
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