Commit fed2746c by BellCodeEditor

save project

parent a0cbfb52
Showing with 78 additions and 2 deletions
# 玩家出拳 player=input("你要出啥(枪、金钱、老板):")
\ No newline at end of file print("玩家出:"+player)
import random
list=["枪","金钱","老板"]
computer=random.choice(list)
print("电脑出:"+computer)
if player in list:
if player==computer:
print("平局")
elif player=="枪"and computer=="老板":
print("你赢了")
elif player=="金钱"and computer=="枪":
print("你赢了")
elif player=="老板"and computer=="金钱":
print("你赢了")
else:
print("你输了")
else:
print("输入错误")
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