NumPy 1.13 可以使用unique,只需选择axis,即可在任何N维数组中选择唯一值。 去掉重复,保留唯一行 unique_rows = np.unique(original_array, ...
確定! 回上一頁