Commit f0c7bdf1 by BellCodeEditor

save project

parent 220fe62b
Showing with 13 additions and 0 deletions
# 玩家出拳
h=input("请出拳:")
print("玩家出拳"+h)
import random
list=["石头","剪刀","布"]
d=random.choice(list)
print("计算机出拳"+d)
if h==d:
print("平局")
elif (h=="石头" and d=="剪刀") or (h=="剪刀" and d=="布") or (h=="布" and d=="石头"):
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