从1.7.0版开始,NumPy具有choice支持概率分布的功能。 from numpy.random import choice draw ... 从Python 3.6 choices 开始, random 模块提供了一种方法。
確定! 回上一頁