python_乱数抽選システム

5963 ワード

print('           ')
import random
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
while True:
    a = input('       :')
    i = random.choice(list1)
    if i in list1:
        if i == 1 :
            print('                ')
            list1.remove(1)
        elif i == 2:
            print('         BYD   ')
            list1.remove(2)
        elif i == 3:
            print('                 ')
            list1.remove(3)
        elif i == 4:
            print('                 ')
            list1.remove(4)
        elif i == 5:
            print('               ')
            list1.remove(5)
        elif i == 6:
            print('                  ')
            list1.remove(6)
        elif (len(list1) - 4) == 0:
            print('    ,  !')
            quit()
        else:
            print('     ,   !')