下列程序满足期望输出的是()。
Arr=np.array([0,1,2,3,4,5,6,7,8,9])
期望输出:array([1,3,5,7,9])
Arr=np.array([0,1,2,3,4,5,6,7,8,9])
期望输出:array([1,3,5,7,9])
Aarr%2==1
Barr[arr%2==1]
Carr[arr/2==1]
Darr[arr//2==1]
相关试题
-
下列程序满足期望输出的是()。Arr=np.array([0,1,2,3,4,5,6,7,8,9])期望输出:array([1,3,5,7,9])
-
若arr=np.array([[1,2,3],[4,5,6],[7,8,9]]),则arr[:2,1:]的输出为()。
-
程序,可以获得两个数组元素匹配的位置的操作是()。输入:a=np.array([1,2,3,2,3,4,3,4,5,6])B=np.array([7,2,10,2,7,4,9,4,9,8])期望输出
-
以下程序的输出是()?array=np.array([[1,2,3],[4,5,6],[7,8,9],[10,11,12]]);print(array.shape)
-
py数组之间的公共项的是()。A=np.array([1,2,3,2,3,4,3,4,5,6])B=np.array([7,2,10,2,7,4,9,4,9,8])期望输出:array([2,4])