Commit 099e82e0 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 25 additions and 0 deletions
import random
choices=["rock","scis","cloth"]
computer=random.choice(choices)
print("计算机:"+computer)
# 玩家出拳
player=input("rock,scis,cloth")
print("玩家:"+player)
import random
choices=["rock","scis","cloth"]
computer=random.choice(choices)
print("计算机:"+computer)
if player in choices:
print("right")
if player==computer:
print("Tie")
elif (player=="rock" and computer=="scis") or (player=="scis" and computer=="cloth") or (player=="cloth" and computer=="rock"):
print("Win")
else:
print("Lose")
else:
print("wrong")
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