Commit 5471fc58 by BellCodeEditor

save project

parent 1114a128
Showing with 6 additions and 7 deletions
......@@ -2,19 +2,18 @@
player=input("出拳:1/2/3,")
print("玩家出拳:"+player)
import random
list=["1","2","3"]
list=["1","2","3",]
computer=random.choice(list)
print(computer)
if player in list:
if player==computer
if player==computer:
print("平局")
elif (player==1 and computer==2)or(player==2 and computer==3)or(player==3 and computer==1):
print("666")
elif (player == "1" and computer == "2") or (player == "2" and computer == "3") or (player == "3" and computer == "1"):
print("你赢了")
else:
print("KO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("你输了")
else:
print("no")
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