Commit bb63dab4 by BellCodeEditor

save project

parent 4681c3d1
Showing with 12 additions and 3 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 b=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+b)
\ No newline at end of file import random
开刀=["石头","剪刀","布"]
a=random.choice(开刀)
print("电脑出拳:"+a)
if b==a :
print("开挂!")
elif b=="石头" and a=="剪刀" or b=="剪刀" and a=="布" or b=="布" and a=="石头":
print("Yes!")
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