Commit a5f9072f by BellCodeEditor

save project

parent 220fe62b
Showing with 21 additions and 0 deletions
# 玩家出拳
player=input("请出拳,小可爱[剪刀/石头/布]:")
print("小可爱选的是:"+player)
import random
list=["剪刀","石头","布"]
computer=random.choice(list)
print("电脑玩家选的是:"+computer)
if computer==player:
print("平局了哦")
elif computer=="布"and player=="剪刀":
print("你赢了,小可爱,太棒了")
elif computer=="石头"and player=="布":
print("小可爱,你赢了哦,继续加油")
elif computer=="剪刀"and player=="石头":
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