net_input()和predict()在fit()里面会报错:'Perceptron' object has no attribute 'predict',但是把这两个函数放在fit()同级也会报错:numpy.core._exceptions.UFuncTypeError: ufunc 'subtract' did not contain a loop with signature matching types (dtype('<U11'), dtype('<U11')) -> dtype('<U11')
predict函数和fit函数对齐就可以了。刚刚才发现的。