赞
踩
numFeatures = dataSet.shape[1] - 1 #获取属性个数,最后一列为label numFeatures #打印结果:30 #实例个数 numEntries = len(dataSet) numEntries #打印结果:569