Reshape your data either using array.reshape(-1, 1)
fromsklearnimportsvmimportnumpyasnpx=[[2,0],[1,1],[2,3]]y=[0,0,1]#标签clf=svm.SVC(kernel='linear')clf.fit(x,y)print(clf)print('支持向量',clf.support_vectors_)#支持向量print('下标',clf.support_)#支持向量下标print('svm个数