Re: Extracting matrix from a text file

2009-08-11 Thread Colin J. Williams
telek...@hotmail.com wrote: Hello to all!! I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange Q/R1

Re: Extracting matrix from a text file

2009-08-11 Thread Mark Lawrence
telek...@hotmail.com wrote: Hello to all!! I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange Q/R1

Re: Extracting matrix from a text file

2009-08-07 Thread alex23
MRAB wrote: > Or: >          columns = line.split(' ')[1 : ] Even better, well spotted. -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting matrix from a text file

2009-08-07 Thread MRAB
alex23 wrote: On Aug 8, 2:19 am, bbarb...@inescporto.pt wrote: I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarit

Re: Extracting matrix from a text file

2009-08-07 Thread alex23
On Aug 8, 2:19 am, bbarb...@inescporto.pt wrote: > I am new in python, and I am running it on Mac with Smultron editor. I   > need to read a textfile that includes numbers (in a matrix form),   > indexes, and strings, like this: > > Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchan