Python分割训练集和测试集的方法示例 数据集介绍使用数据集Wine,来自UCI 。包括178条样本,13个特征。importpandasaspdimportnumpyasn Python分割训练集和测试集