单选题 已知a=numpy.arange(10)
s=slice(2,7,2)
print(a[s])
输出的结果是
A、[2,4,6]
B、[1,3,5]
C、[2,4,6,8]
D、[1,3,5,7]
单选题 已知x是numpy中的数组,以下用于获取x中大于5的元素是()
A、x>5
B、x(x>5)
C、x(x>5)
D、x[x>5]
单选题 下列不属于Numpy中数组属性的是()
A、ndim
B、shape
C、size
D、add
单选题 numpy提供的基本对象是()
A、array
B、ndarray
C、Series
D、DataFrame
单选题 numpy中用于更改数组或矩阵的数据类型的方法是
A、type
B、retype
C、astype
D、reshape
单选题 已知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、都不正确
单选题 numpy中用于表示元素的数据类型的对象是()
A、array
B、dtype
C、arange
D、ndim
单选题 numpy.min()这个函数用于?
A、寻找所有元素中最大值
B、计算所有元素的平均值
C、寻找所有元素中最小值
D、寻找所有元素中的中值