... 重複數字 print("不重複數字:", numpy.unique(a)) 不重複數字: [0 1 2 3 4]. 若要列出不重複的子陣列,可以將 axis 參數設定為要進行篩選操作的維度: # 列出不重複的 ...
確定! 回上一頁