# 一个最基本的例子 #样本数据的封装 feature = [[170,70,42],[166,56,39],[188,90,44],[165,88,40],[170,66,40],[176,80,42],[166,55,37],[155,50,38]] target = ['男','女','男','男','女','男','女','女'] from sklearn.neighbors import KNeighborsClassifier knn = KNeighborsClassifier(n…