# 石头剪刀布 import random player = int(input('请出拳:1,2/剪刀,3/布')) computer = random.randint(1, 3) 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('电脑胜出!')