版权声明 本文原创作者:谷哥的小弟 作者博客地址:http://blog.csdn.net/lfdfhl np.sum(x) 用途:计算数组元素的总和。 示例: import numpy as np # 定义一维数组 x = np.array([1,