运行下面代码的输出结果为()。
Importnumpyasnp
A=np.arange(6).reshape(3,2)
Wt=np.array([3,5])
Print(np.average(
A,axis=1,weights=wt))
Importnumpyasnp
A=np.arange(6).reshape(3,2)
Wt=np.array([3,5])
Print(np.average(
A,axis=1,weights=wt))
A[[01][23][45]]
B[0.6252.6254.625]
C(array([0.625,2.625,4.625]),array([8.,8.,8.]))
D以上都不对
相关试题
-
运行下面代码的输出结果为()。Import numpy as npA=np.arange (6).reshape (3,2)Wt=np.array ([3,5])Print(np.average (a
-
运行下面代码的输出结果为()。ImportnumpyasnpA=np.arange(6).reshape(3,2)Wt=np.array([3,5])Print(np.average(A,axis=1
-
运行下面代码的输出结果为()。Arr1=np.arange(0,16,1).reshape(4,4)Np.delete(arr1,1,axis=1)Print(arr1)
-
运行下面代码的输出结果为()。Import numpy as npA=np.arange (12).reshape (3,4)Print(np.delete(a,5))
-
运行下面代码的输出结果为()。Import numpy as npA=np.array([[30,65,70],[80,95,10],[[50,90,60]])Print(np.median (a,a