Import the numpy package under the name np import numpy as np 2. ... Find indices of non-zero elements from [1,2,0,0,4,0] nz = np.nonzero([1,2,0,0,4,0]) 7.
確定! 回上一頁