結果 : distance function python