根据以下代码, 得到的结果为? import numpy as np a=np.arange(10).reshape(2,5).T b=np.arange(20).reshape(5,4) c=np.hstack((a,b)) print(c.shape)

A. (5,6)

B. (5,5)

C. (6,5)

D. (2,4)

参考答案与解析:

相关试题

4 C=np.arange(1,9).reshape(4,2)与以下哪个矩阵相同?

4 C=np.arange(1,9).reshape(4,2)与以下哪个矩阵相同?A. C=np.array([[1,2,3,4],[5,6,7,8]]B. C

  • 查看答案
  • 阅读以下代码:import numpy as npdata = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])想要得到array([4, 5, 6]),应输入代

    阅读以下代码:import numpy as npdata = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])想要得到a

  • 查看答案
  • 已知arr=np.array([[0,1,2],[4,5,6],[8,9,10]]),那么np.amin(arr,axis=1)所得的结果为( )。A.array([0, 4, 8])B.array

    已知arr=np.array([[0,1,2],[4,5,6],[8,9,10]]),那么np.amin(arr,axis=1)所得的结果为( )。A.arr

  • 查看答案
  • Np-237的半衰期为()a。

    [单选题]Np-237的半衰期为()a。A.1.41×1010B.4.47×109C.7.04×108D.2.14×106

  • 查看答案
  • NP完全问题

    [名词解释] NP完全问题

  • 查看答案
  • 1Np=()dB。

    [单选题]1Np=()dB。A . 7.01B . 8.868C . 9.025D . 10.14

  • 查看答案
  • 硅灰石a^Ng=30°,b^Nm=4°c^Np=26°此矿物是()。

    [单选题]硅灰石a^Ng=30°,b^Nm=4°c^Np=26°此矿物是()。A .斜方晶系B .三斜晶系C .单斜晶系D .三方晶系

  • 查看答案
  • The notion of NP£­completeness has provi

    [单选题]The notion of NP-completeness has provided a(66)mathematical definition for(67)intractability of NP problems. But this measure applies only to worst-case complexity. Being NP-complete does not(68)that a problem is intractable on the average case. Ind

  • 查看答案
  • NP and ( ) are essential components of a sentence.

    [单选题]NP and ( ) are essential components of a sentence.A.VPB.PPC.APD.all of the

  • 查看答案
  • NP and ( ) are essential components of a sentence.

    [单选题]NP and ( ) are essential components of a sentence.A.VPB.PPC.APD.all of the

  • 查看答案