you can do this in two simple steps using NumPy: >>> # multiply column 2 of the 2D array, A, by 5.2 >>> A[:, 1] *= 5.2 >>> # assuming by 'cumulative sum' ...
確定! 回上一頁