Ana Dionísio於 2013年4月23日星期二UTC+8上午2時13分38秒寫道: > Hello! > > > > I need your help! > > > > I have an array and I need pick some data from that array and put it in a > list, for example: > > > > array= [a,b,c,1,2,3] > > > > list=array[0]+ array[3]+ array[4] > > > > list: [a,1,2] > > > > When I do it like this: list=array[0]+ array[3]+ array[4] I get an error: > > > > "TypeError: unsupported operand type(s) for +: 'numpy.ndarray' and > 'numpy.ndarray'" > > > > Can you help me?
The list part in Python is more versatile but definitely executed slower than the array in C. What I like is that maintaining the Python part is not as tedious and painful for the same programs in LISP. -- http://mail.python.org/mailman/listinfo/python-list