python numpy 數組中元素大於等於0的元素

1 >>> import numpy as np 2 >>> a = np.random.randint(-5, 5, (5, 5)) 3 >>> a 4 array([[-4, -4, -5, 2, 1], 5 [-1, -2, -1, 3, 3], 6 [-1, -2, 3, -5, 3], 7 [ 0, -3, -5, 1,
相關文章
相關標籤/搜索