这里的代码隔开用的都是空格,为什么会出现 TabError: inconsistent use of tabs and spaces in indentation这种报错呢
import numpy as np
import operator
import KNN
def createDataSet():
group=np.array([[1,1.1],[1,1],[0,0],[0,0.1]])
labels=['A','A','B','B']
return group,labels
group,labels=KNN.createDataSet()
print(group)
TabError: inconsistent use of tabs and spaces in indentation
有懂的能帮我解答下吗,感激不尽