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