(pytho2.7)
In [9]: import itertools In [10]: len([i for i in itertools.combinations(range(43), 6)]) Out[10]: 6096454 # 1等 1/6096454 In [19]: len([i for i in itertools.combinations(range(6), 5)]) * len([i for i in itertools.combinations(range(1), 1)]) Out[19]: 6 # 2等 6/6096454 In [21]: len([i for i in itertools.combinations(range(6), 5)]) * len([i for i in itertools.combinations(range(36), 1)]) Out[21]: 216 # 3等 216/6096454 In [24]: len([i for i in itertools.combinations(range(6), 4)]) * len([i for i in itertools.combinations(range(37), 2)]) Out[24]: 9990 # 4等 9990/6096454 In [25]: len([i for i in itertools.combinations(range(6), 3)]) * len([i for i in itertools.combinations(range(37), 3)]) Out[25]: 155400 # 5等 155400/6096454