Commit 06ac23c9 by BellCodeEditor

save project

parent 220fe62b
Showing with 16 additions and 0 deletions
# 玩家出拳
player=input("你出什么呀?")
import random
list=["rock","paper","scissors"]
computer=random.choice(list)
print("玩家出拳:"+player)
print("计算机出拳:"+computer)
if player in list:
if player == computer:
print("No one wins.")
elif (player=="rock"and computer=="scissors")or(player=="scissors"and computer=="paper")or(player=="paper"and computer=="rock"):
print("You win!")
else:
print("Well done you 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