对numpy.array重新排列:numpy.random.shuffle(x):修改本身,打乱顺序import numpy as nparr = np.array(range(0, 21, 2))np.random.shuffle(arr)arr #打乱顺序后的 ...
確定! 回上一頁