NumPy笔记:数组去重

import numpy as np
a = np.array([1, 2, 3, 4, 2, 3, 2, 4, 6, 3, 5])
print(np.unique(a))
[1 2 3 4 5 6]
原文地址:https://www.cnblogs.com/jumpkin1122/p/11503525.html