unique 在處理二維以上的陣列資料時,預設會將其轉換為一維來處理(flatten): # 二維陣列 a = numpy.array([[1, 0, 0], [1, 0, 0], [2, 3, 4]]) # 列出不重複數字 ...
確定! 回上一頁