Commit 08e02942 by BellCodeEditor

save project

parent 220fe62b
Showing with 13 additions and 0 deletions
import random
g=input("玩家出拳(石头\剪刀\布)")
print("玩家出拳"+g)
s=["剪刀","石头","布"]
s=random.choice(s)
print("电脑出拳"+s)
if g==s:
player("平局")
elif(g=="石头"and s=="布") or (g=="剪刀"and s=="石头") or(g=="布"and s=="剪刀") :
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