# -*- coding: utf-8 -*-
"""
Created on Fri Nov 11 09:24:38 2022
@author: 29024
"""
import random
choice=input("这是老虎机游戏,要不要来挑战,(y/n):")
while choice=="y":
num1=random.randint(1,3)
num2=random.randint(1,3)
num3=random.randint(1,3)
print(num1,num2,num3)
if(num1==num2)&(num1==num3):
print("中奖啦!")
else:
print("很遗憾")
choice=input("再来挑战,(y/n):")
print("欢迎下次挑战")