np.unique
np.unique(ar, return_index=False, return_inverse=False, return_counts=False,axis=None)
>>> import numpy as np>>> a=np.random.normal(size=(10))>>> aarray([-0.11357244, 0.95701868, -1.22541056, 0.17625916, -1.16635707, -1....
转载
2021-04-06 11:16:47 ·
571 阅读 ·
0 评论