You can use the unique() function of Numpy to check the unique elements in a list. >>> s=[1,0,1,2,0,1,1,0,2,2,3,0] >>> np.unique(s)
確定! 回上一頁