Commit e45163e2 by BellCodeEditor

auto save

parent 4448ddaa
Showing with 16 additions and 0 deletions
o=input("请出(石头/剪刀/布)")
print("玩家已输入"+o)
import random
h=["石头","剪刀","布"]
a=random.choice(h)
print("计算机 :"+a)
if o in h:
if o==a:
print("平局")
elif (o=="石头" and a=="剪刀") or (o=="剪刀" and a=="布") or (o=="布" and a=="石头"):
print("你赢了,你太厉害了")
else:
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