>>> a[ 0, 3:5 ] array( [3, 4] ) |
|
>>> a[ 4:, 4: ] array( [ [44, 45], [54, 55] ] ) |
|
>>> a[ :, 2] array( [ 2, 12, 22, 32, 42, 52 ] ) |
|
>>>> a[ 1:5:3, ::2 ] array( [ [10, 12, 14,], [40, 42, 44] ] ) |
'Python' 카테고리의 다른 글
Python_EX-004. 10 way data read from a file (0) | 2025.01.21 |
---|---|
Python_EX-003. how to extract a condition dataset (0) | 2025.01.21 |
Python_N-005. Array Broadcasting (0) | 2025.01.20 |
Python_EX-002. Average Score Comparison (NumPy Practice) (0) | 2025.01.20 |
Python_N-005. 10 basic attributes in array (2) (0) | 2025.01.19 |