j = np.arange(5). >>> 2**(j + 1) - j. array([ 2, 3, 6, 13, 28]). These operations are of course much faster than if you did them in pure python:.
確定! 回上一頁