RuntimeWarning: invalid value encountered in divide

1 import numpy as np
2 olderr = np.seterr(all='ignore')

在程序的开头加上如上代码

 https://docs.scipy.org/doc/numpy/reference/generated/numpy.linspace.html

posted @ 2016-11-03 14:29  乐乐章  阅读(3961)  评论(0编辑  收藏  举报