choices = [a,a,a,a,b,b,c] random.choice(choices)
正如你所看到的那样,最有可能被选中,但有更好/更短的方式吗?
python python-3.x
python ×1
python-3.x ×1