是否可以修改numpy.random.choice 函数以使其返回所选元素的索引? 基本上,我想创建一个列表并随机选择元素而无需替换 import numpy as np >>> a = [1,4,1,3,3,2,1,4] ...
確定! 回上一頁