计算numpy中元素个数的方法( )。
np.size()
已知c = np.arange(24).reshape(3, 4, 2)那么c.sum(axis = 0)所得的结果为( )。
array([[24, 27], [30, 33], [36, 39], [42, 45]])
有数组n = np.arange(24).reshape(2, -1, 2, 2),n.shape的返回结果是什么?
(2, 3, 2, 2)
numpy中创建全为0的矩阵使用( )。
zeros
numpy中向量转成矩阵使用( )。
reshape
numpy中矩阵转成向量使用( )。
resize
已知a = np.arange(12),c = a.view()那么c is a的结果为True,c.base is a的结果为True( )
×
np.where(condition[, x, y]),基于条件condition,返回值来自x或者y( )。
√
一个数组对象的itemsize,返回的值是由数组的大小决定的( )。
×
numpy中产生全1的数组使用方法empty。( )
×
a[::-1]可以将一个向量进行返转。( )
√