Commit ed8d9f6e by BellCodeEditor

save project

parent 05cb1959
Showing with 13 additions and 2 deletions
d=input("石头/剪刀/布") d=input("石头/剪刀/布")
print("玩家出拳:"+d) print("玩家出拳:"+d)
import random import random
y=["石头",“] list=["石头","布","剪刀"]
\ No newline at end of file b=random.choice(list)
print("计算机:"+b)
if d in list:
if d==b:
print("平局")
elif (d=="剪刀" and b=="布") or (d=="石头" and b=="剪刀") or (d=="布" 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