a.remove(np.random.choice(a)) will remove the first element of the list with that value it encounters ( a[1] in the example above), which may not be the chosen ...
確定! 回上一頁