##介紹
this is my first webpage practice!!
def buyticket():
lottery = set()
while len(lottery) < 6:
n = random.randint(1, 49)
lottery.add(n)
return lottery
prize = buyticket()
print("五星號碼:", prize)
times = 0
my = buyticket()
while len(prize & my) <= 4:
my = buyticket()
print("你的五星券:", my)
times = times + 1
win = prize & my
print("中獎號碼:", win)
print("聖晶石數:", times)
print("總價:", times*30)
艾蕾 | 伊斯塔 |
---|---|
冥界女神 | 金星女神 |