from scipy.spatial import ConvexHull hull = ConvexHull(points) plt.plot(points[:,0], points[:,1], ‘o’) hull.vertices 得到凸轮廓坐标的索引值,逆时针画 hull1=hull.vertices.tolist()#要闭合必须再回到起点[0] hull1.append(hull1[0])