Commit 24147019 by BellCodeEditor

save project

parent 43215d50
Showing with 3 additions and 2 deletions
...@@ -3,8 +3,9 @@ print(玩家出拳) ...@@ -3,8 +3,9 @@ print(玩家出拳)
import random import random
list=["拳头","剪刀","布"] list=["拳头","剪刀","布"]
computer=random.choice(list) computer=random.choice(list)
if if player==computer:
print("1")
elif (player=="拳头"and computer=="剪刀")or(player=="剪刀"and computer=="布")or(player=="拳头"and computer==)
......
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