reshape , sum, and divide by 10: N = 10 a.reshape(-1,N).sum(1)/N. or, using numpy.mean : np.mean(a.reshape(-1,10), 1).
確定! 回上一頁