python 猜拳
import random
print("[1] 石头")
print("[2] 剪刀")
print("[3] 布")
player = int(input("请输入你的选择:"))
# 随机在a,b之间生成一个数字
computer = random.randint(1,3)
# 电脑生成的数字
print(computer)
if ((player == 1 and computer == 2)
or (player == 2 and computer == 3)
or (player == 3 and computer == 1)):
print("你赢了")
elif player == computer:
print("平局")
else:
print("电脑赢了")