没注释的源代码
import random
win =0
while True:
player = int(input("请输入:剪刀(0) 石头(1) 布(2)"))
computer = random.randint(0,2)
if (player == 0 and computer == 2) or (player == 1 and computer == 0) or (player == 2 and computer == 1):
win +=1
if win==3:
print('你赢了')
break
else:
print('继续玩')
elif player == computer:
print("平局,再来一次")
else:
print("你输了,不要走,决战到天亮")