Kmeans 实现: 参看:https://blog.csdn.net/hanxia159357/article/details/81530361 import numpy as np import matplotlib.pyplot as plt # 加载数据 def loadDataSet(fileName): data = np.loadtxt(fileName,delimiter='\t') return data # 欧氏距离计算 def distEclud(x,y): return np.sqrt(np.sum((x-y)**2...