import numpy as np # 1차원 배열 초기화 a = np.array( [ 1, 2, 3 ] ) print( "shape =", a.shape ) print( "ndim =", a.ndim) print( "dtype =", a.dtype) print( "itemsize =", a.itemsize) print( "size =", a.size) print( "data =", a.data )
shape = (3,) ndim = 1 dtype = int64 itemsize = 8 size = 3 data = <memory at 0x000001673C969D80>