Commit a97bfb86 by BellCodeEditor

save project

parent 09813d7c
Showing with 2 additions and 20 deletions
player=input("你要出啥(枪、金钱、老板):") name=inpout("你叫什么?")
print("玩家出:"+player) print(name"+你好啊")
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