[SciPy-user] what different between array([ 1., 2., 3.])

Zhang Sam hollowspook at gmail.com
Mon Nov 27 19:48:34 CST 2006


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20061128/60824ca1/attachment.html 


More information about the SciPy-user mailing list