소스 뷰어
import numpy as np
a = np.array( [ [ [0, 1, 2] ]*4 ]*2 )
b = np.array( [ [ [0]*4 ]*2, [ [1]*4 ]*2, [ [2]*4 ]*2 ] )
c = np.dstack( [ [ [0]*4 ]*2, [ [1]*4 ]*2, [ [2]*4 ]*2 ] )
print( "a = ", a, sep="\n" )
print( "-"*50 )
print( "a.shape = ", a.shape )
print( "-"*50 )
print( "b = ", b, sep="\n" )
print( "-"*50 )
print( "b.shape = ", b.shape )
print( "-"*50 )
print( "c = ", c, sep="\n" )
print( "-"*50 )
print( "c.shape = ", c.shape )