diy1.py
354 Bytes
player=input("请出拳")
print("出"+player)
import random
list1=["石头","剪刀","布"]
letter=random.choice(list1)
print(letter)
if player==letter:
print("平局")
elif (player=="石头" and letter=="剪刀")or(player=="剪刀" and letter=="布")or(player=="布" and letter=="石头"):
print("赢了")
else:
print("输了")