单选题 下列创建3行4列的二维数组,元素值从10到21的代码正确的是

A、 numpy.arange(10,22).reshape(4,3)
B、 numpy.arange(10,22).reshape(3,4)
C、 numpy.arange(10,23).reshape(4,3)
D、 numpy.arange(10,23).reshape(3,4)
下载APP答题
由4l***b9提供 分享 举报 纠错

相关试题

单选题 numpy提供的基本对象是()

A、array
B、ndarray
C、Series
D、DataFrame

单选题 numpy中用于更改数组或矩阵的数据类型的方法是

A、type
B、retype
C、astype
D、reshape

单选题 下列不属于Numpy中数组属性的是()

A、ndim
B、shape
C、size
D、add

单选题 numpy中用于表示元素的数据类型的对象是()

A、array
B、dtype
C、arange
D、ndim

单选题 已知x是numpy中的数组,以下用于获取x中大于5的元素是()

A、x>5
B、x(x>5)
C、x(x>5)
D、x[x>5]

单选题 numpy中更改数组的形状使用

A、arange
B、reshape
C、array
D、astype

单选题 numpy.min()这个函数用于?

A、寻找所有元素中最大值
B、计算所有元素的平均值
C、寻找所有元素中最小值
D、寻找所有元素中的中值

单选题 已知np是numpy的别名,c=np.arange(24).reshape(4,6), 那么c.sum(axis=0)所得到的结果为()

A、[36 40 44 48 52 56]
B、[ 15 51 87 123]
C、276
D、都不正确