from sklearn import tree
from sklearn.metrics import precision_recall_curve
from sklearn.cross_validation import train_test_split
import numpy as np
#读取数据
data=[]
labels=[]
with open('')as f:
for line in f:
linelist=line.split(' ')
data.append([float(el) for el in linelist[:-1]])
labels.append(linelist[-1].strip())
print(data)
print(labels)