``` (double) sqrt((double)(x[u]-x[v])*(x[u]-x[v])+(double)(y[u]-y[v])*(y[u]-y[v])); ``` 应该是精度的问题,这么改试试(别问我是怎么这么熟悉这个错误的.... by 像晚风 @ 2021-07-28 19:13:43