Commit af778702 by BellCodeEditor

auto save

parent 220fe62b
Showing with 18 additions and 0 deletions
import random
nb=input("你出嘛呀?")
print("玩家:"+nb)
list=["石头","剪刀","布","我认输"]
diannao=random.choice(list)
print("电脑出拳"+diannao)
if nb in list:
if nb==diannao:
print("平局")
elif (nb=="石头" and dianniao=="剪刀") or (nb=="剪刀" and dianniao=="布") or (nb=="石头" and dianniao=="剪刀"):
print("你居然赢了,厉害!")
else:
print("你就是个弟弟!")
print("我:给爷趴!")
else:
print("你个弟弟,都输错了")
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