我需要一种无需替换特定数组的采样方法 a .我尝试了两种方法(参见下面的MCVE),使用 random.sample() 和 np.random.choice . 我假设了 numpy 函数会更快,但事实证明 ...
確定! 回上一頁