1 import numpy as np 2 olderr = np.seterr(all='ignore')
在程序的开头加上如上代码
https://docs.scipy.org/doc/numpy/reference/generated/numpy.linspace.html