<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BR><BR>Hi,<BR>
 <BR>
I have struggling to efficiently convert a string list to number. Here is my problem. I have a file that contains lines such as:<BR>
 <BR>
data_1 1 1 2 3.5<BR>
 <BR>
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', '1','1','2','3.5']. I want to create a dictionary which contains<BR>
 <BR>
{'data_1':[1 1 2 3.5]}<BR>
 <BR>
The problem is I coud not efficiently find a way to convert the string to number. <BR>
 <BR>
Does anyone know how to create such dictionary efficiently?<BR>
 <BR>
thanks<BR>
 <BR>
Frank<BR><br /><hr />$B:#OCBj$K$J$C$F$k=PMh;v$dM-L>?M$r%i%s%-%s%0$GKh=5H/I=!V(BMSN $B5$$K$J$k8@MU!W(B <a href='http://clk.atdmt.com/GBL/go/msnjpqjl0040000012gbl/direct/01/' target='_new'>http://keyword.jp.msn.com/default.aspx</a></body>
</html>