在numpy模組裡面中,我們可以使用np.sum(array變數名稱),計算出array裡面 ... 報酬的計算。np.cumprod的用法與np.cumsum一樣,計算由累加變成累乘。
確定! 回上一頁