import random num = [1,1,1,2,2,2,3,3,3,4,5,5,5,5,6,6,6,6,0,0,0,0,0,0] print(random.choice(num))第一题,可以这样