np.sum(np.abs(x)). Out[3]:. 55. We can confirm our results with Numpy 's norm function. In [4]:. np.linalg.norm(x, 1). Out[4]:.
確定! 回上一頁