10 lines
239 B
Python
10 lines
239 B
Python
import numpy as np
|
|
|
|
twodim_array = np.array([[1,2,3,4,5],[1,4,9,16,25]],dtype='int32')
|
|
|
|
print(f'twodim_array={twodim_array}')
|
|
print(f'ndim={twodim_array.ndim}')
|
|
print(f'dtype={twodim_array.dtype}')
|
|
print(f'shape is {twodim_array.shape}')
|
|
|