prod()可求取数组中元素的乘积此数组的元素的乘积:import numpy as nparr = np.array([1, 2, 3, 4])x = np.prod(arr)print(x)执行结果:24 #因为 1*2*3*4 = 24