import random
while True:
computer = random.randint(0, 2)
player = int(input('请出拳:0-石头, 1-见到, 2-布:'))
print(f'n您出的是{player},电脑出的是{computer}')
if (player == 0 and computer == 1) or (player == 1 and computer == 2) or (player == 2 and computer == 0):
print('玩家获胜')
# 平局: 玩家 == 电脑
elif player == computer:
print('平局')
else:
print('电脑获胜')



