Call numpy.isnan(x) to check if the previous result x is NaN . print(array). Output. [[ 1. 2.] [ 3. nan]]. array_sum = np.sum(array).
確定! 回上一頁