按照面积排序
from scipy.cluster.vq import kmeans import numpy as np new_anchor = np.arange(0,9).reshape(3,3) print(new_anchor) print(new_anchor.prod(axis =1)) print(new_anchor.prod(axis =1).argsort()) print(new_anchor[new_anchor.prod(axis =1).argsort()])