Commit eaf7895e by BellCodeEditor

save project

parent a5111c90
Showing with 15 additions and 3 deletions
player=input("请出拳:(石头/剪刀/布):")
print("玩家请出拳"+player)
\ No newline at end of file
pl=input("请出拳:(石头/剪刀/布):")
print("玩家请出拳"+pl)
import random
list=["石头","剪刀","布"]
cu=random.choice(list)
print("计算机:"+cu)
if pl==cu:
print("平局")
elif (pl=="石头" and cu=="剪刀") or (pl=="剪刀" and cu=="布") or (pl=="布" and cu=="石头"):
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