Commit b3cd0d7f by BellCodeEditor

save project

parent e04d54cc
Showing with 22 additions and 4 deletions
name =input("你叫啥小逼崽子:") #玩家出拳
print(name+"你好呀"+"***********") SB = input("玩家出拳(石头/剪刀/布):")
\ No newline at end of file print("玩家出拳:"+SB)
#计算机出拳
import random
sb = ["石头","剪刀","布"]
c=random.choice(sb)
print("计算机出拳:"+c)
if SB in sb:
if SB==c:
print("平局")
elif SB=="石头" and c=="剪刀" or SB=="剪刀" and c=="布" or SB=="布" and c=="石头":
print("你赢了")
else:
print("你输了")
else:
print("数据有误")
player=input("请出拳:石头/剪刀/布") player=input("请出拳:ccc")
print("玩家出拳:"+player) print("玩家出拳:"+player)
\ 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