Counter用法(python)
参考博客:python之Counter,items,sorted,count【python深入】collections-Counter使用总结from collections import Countera=Counter(np.squeeze(array1).flatten())print(a)b = sorted(a.items(), key=lambda x : x[0])#按counter的第一个元素排序print(b)...