unique () is slow, O(Nlog(N)), but you can do this by following code: import numpy as np a = np.array(['b','a','b','b','d','a','a','c','c']) ...
確定! 回上一頁