Commit 2362cbab by BellCodeEditor

save project

parent 220fe62b
Showing with 17 additions and 0 deletions
# 玩家出拳
choice = input("What is your choice?")
Choice = choice.title()
print("Player's choice is:"+Choice)
# 计算机出拳
import random
list = ["Rock","Paper","Scissors"]
letter = random.choice(list)
print("Computer's choice is:"+letter)
#qwq
if Choice == letter:
print("哦耶,平局")
elif (Choice=="Rock" and letter =="Scissors") or (Choice=="Scissors" and letter =="Paper") or (Choice=="Paper" and letter =="Rock") :
print("恭喜你赢了")
else:
print("很遗憾你没了")
\ 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