Commit 2d210e42 by BellCodeEditor

save project

parent 220fe62b
Showing with 21 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==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")
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