Commit e397c90a by BellCodeEditor

save project

parent ddc00840
Showing with 10 additions and 6 deletions
import random
# 玩家出拳
player=input("请出拳(剪刀,石头,布):")
print("玩家出拳:"+player)
import random
list = ("剪刀","石头","布")
computer = random.choice(list)
print(computer)
if player == computer:
print("玩家出拳:"+player)
print("电脑出拳:"+computer)
if player in list :
if player == computer:
print("pingju")
elif (player=="shitou" and computer == "jiandao") or (player == "jiandao" and computer == "bu") or (player == "bu" and computer == "shitou"):
elif (player=="shitou" and computer == "jiandao") or (player == "jiandao" and computer == "bu") or (player == "bu" and computer == "shitou"):
print("you win")
else:
else:
print("you over")
else:
print(cuowu)
\ No newline at end of file
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