how to convert string to number?

2007-10-16 Thread wang frank
Hi, I have struggling to efficiently convert a string list to number. Here is my problem. I have a file that contains lines such as: data_1 1 1 2 3.5 After I read the data from the file by using readlines(), each line contains a string. I use the re moduel to split the line into

Re: how to convert string to number?

2007-10-16 Thread Tim Chase
I have struggling to efficiently convert a string list to number. Here is my problem. I have a file that contains lines such as: data_1 1 1 2 3.5 After I read the data from the file by using readlines(), each line contains a string. I use the re moduel to split the line into ['data_1',

RE: how to convert string to number?

2007-10-16 Thread wang frank
It seems that I have problem with the python-list, so I resend this. Thanks Frank From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: how to convert string to number?Date: Tue, 16 Oct 2007 18:15:06 + Hi, I have struggling to efficiently convert a string list to number. Here is my problem. I

RE: how to convert string to number?

2007-10-16 Thread wang frank
@python.org Subject: Re: how to convert string to number? I have struggling to efficiently convert a string list to number. Here is my problem. I have a file that contains lines such as: data_1 1 1 2 3.5After I read the data from the file by using readlines(), each line contains

Re: how to convert string to number?

2007-10-16 Thread Tim Chase
I am new to Python and find it very interesting welcome to the wonderful world of Python :) so I decided to try to port a big project from matlab to python. To prove the value of the python, I need to find an python way to do it. A good exercise for learning Python. The input file