# include<stdio.h># include<math.h>intmain(){
int x1,x2,y1,y2;
double m;
scanf("(%d,%d),(%d,%d)",x1,y1,x2,y2);
m = sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
printf("%0.3lf",m);
return0;
}
weixin_39831170的博客展开全部欧式距离python实现代码:import numpy as npx=np.random.random(10)y=np.random.random(10)#方法一:根据公62616964757a686964616fe4b893e5b19e31333433616230式求解d1=np.sqrt(np.sum(np.square(x-y)))#...