vgujh.py
384 Bytes
q=input("请出拳")
print("玩家出:"+q)
import random
t=["石头","剪刀","布"]
y=random.chioce(t)
print("电脑出"+y)
if q in t:
if q==y:
print("平局")
elif (q=="石头" and y=="剪刀") or (q=="剪刀" and y=="布") or (q=="布" and y=="石头"):
print("耶")
else:
print("哎")
else:
pring("????????????????????????")