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

Robert Kern robert.kern at gmail.com
Mon Nov 27 19:53:52 CST 2006


Zhang Sam wrote:
> 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])
>>>>
> -----------------------------

Can you try to restate your question? I don't understand what you are trying to ask.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list