numpy中inf的相关文档 什么是inf? IEEE 754浮点表示(正)无穷大。 为什么会产生? >>> np.NINF -inf >>> np.inf inf >>> np.log(0) -inf >>> np.array([1,2])/0 #碰到的最多的情况 array(