运行下面代码的输出结果为()。
Import numpy as np
A=np.arange (6).reshape (3,2)
Wt=np.array ([3,5])
Print(np.average (a,axis=1,weights=wt))
Import numpy as np
A=np.arange (6).reshape (3,2)
Wt=np.array ([3,5])
Print(np.average (a,axis=1,weights=wt))
A[[0 1][2 3][4 5]]
B[0.625 2.625 4.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
-
运行下面代码的输出结果为()。Import numpy as npA=np.array([-1.7,1.5,-0.2,0.6,10])Print(np.ceil a))
-
运行下面代码的输出结果为()。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