📅  最后修改于: 2022-03-11 14:47:10.981000             🧑  作者: Mango
from sklearn.model_selection import train_test_split
xTrain, xTest, yTrain, yTest = train_test_split(x, y, test_size = 0.2, random_state = 0)