i+= 1#print(newpoint)returnnewpoint#testcenter = center(test,label2,k)#print('testcenter:',testcenter)#K-means主体函数defmyK(k,dataset): Startpoint=startpoint(k,dataset) m,n=np.shape(Startpoint) centerpoint=Startpoint labelset=classfy(dataset,Startpoint) newcenter=Center(dataset,labelset,k)#p...