[Solution found!] 从1.7.0版开始,NumPy具有choice支持概率分布的功能。 from numpy.random import choice draw = choice(list_of_candidates, ...
確定! 回上一頁