Commit 79fd6e7e by BellCodeEditor

save project

parent 754b7fe1
Showing with 17 additions and 0 deletions
import random as r
p=input("请出拳")
print("玩家出拳:"+p)
import random as r
gf=["石头","剪刀","布"]
b=r.choice(gf)
print("计算机出拳:"+b)
if p in gf:
if p==b:
print("平局")
elif (p=="剪刀"and b=="布")or(p=="石头"and b=="剪刀")or(p=="布"and b=="石头"):
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