📜  python代码示例中的距离矩阵

📅  最后修改于: 2022-03-11 14:46:58.951000             🧑  作者: Mango

代码示例1
>>> from scipy.spatial import distance_matrix
>>> distance_matrix([[0,0],[0,1]], [[1,0],[1,1]])
array([[ 1.        ,  1.41421356],
       [ 1.41421356,  1.        ]])