Re: [SciPy-user] what different between array([ 1., 2., 3.])
by Zhang Sam other posts by this author
Nov 27 2006 5:48PM messages near this date
Re: [SciPy-user] what different between array([ 1., 2., 3.] )
|
Re: [SciPy-user] what different between array([ 1., 2., 3.])
Hi,
That is a the operation of 1-D array and 2-D array is different. A 1-D array
is more like list type.
--------------------------
> >> from numpy import *
> >> a= array([1,2,3])
> >> a[:]
array([1, 2, 3])
> >> a[0:1]
array([1])
> >>
-----------------------------
Thanks!
Thread:
Zhang Sam
Robert Kern
|