Commit 525e2fa0 by BellCodeEditor

auto save

parent 23dfff73
Showing with 18 additions and 0 deletions
pl=input("请出拳:(石头/剪刀/布)")# 玩家出拳
print("玩家出拳:"+pl)
import random
list=["石头","剪刀","布"]
cu=random.choice(list)
print("计算机出拳:"+cu)
if pl==cu:
print("平局")
elif pl=="石头" and cu=="剪刀":
print("你赢了")
elif pl=="剪刀" and cu=="布":
print("你赢了")
elif pl=="布" and cu=="石头":
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