1、加载、查看红酒数据集 红酒数据集是Scikit-learn自带的数据集,我们通过load_wine ()函数来加载。 fromsklearn.datasetsimportload_winefromsklearn.model_selectionimporttrain_test_splitfromsklearn.neighborsimportKNeighborsClassifierimportnumpyasnpimportpandasaspdimportmatplotlib.pyplotasplt# 加载wine数据集wine=load...