結果 : how to write knn algorithm in python