How to create 3 dimension array from 1 & 2 dimension arrray

Klaus Bruns Klaus.Bruns at teleatlas.com
Fri Apr 27 05:39:28 EDT 2001


Klaus Bruns wrote:

> Tawee Laoitichote wrote:
>
> > Dear,
> >
> > I have 1 dimension array having shape like (3,) and 2 dimension array;
> > (4,4). Then, I want to create new array from these two arrays having new
> > dimension as (3,4,4), Help please!
>
> try this:
>
> >>> l1 = (3,)
> >>> l2 = (4,4)
> >>> l1 + l2
> (3, 4, 4)
> >>>

Oh sorry, I didn't catch the content correctly.




More information about the Python-list mailing list