Commit e8182ff2 by BellCodeEditor

auto save

parent 4c4c399f
Showing with 13 additions and 7 deletions
# 玩家出拳
player=input("你出什么(剪刀/石头/布)")
print("玩家出拳:"+player)
s=machine=["石头","剪刀","布"]
random.choice(machine)
machine=["石头","剪刀","布"]
s=random.choice(machine)
print("机器出拳:"+s)
if s="布" and player="石头"
print("电脑赢")
else
if
\ No newline at end of file
if s="石头" and player="剪刀":
print("你输了")
else:
if s="剪刀" and player="布":
print("你输了")
else:
if s="布" and player="石头":
print("你输了")
else:
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