When no index is given, as for d, np.sum adds up all of the elements in the array. Python also has a built-in sum function that does not work the same way.
確定! 回上一頁