[Numpy-discussion] manipulating lists

Nils Wagner nwagner at iam.uni-stuttgart.de
Tue Mar 24 10:14:20 EDT 2009


Hi all,

How can I extract the numbers from the following list

['&', '-1.878722E-08,', '3.835992E-11', 
'1.192970E-03,-5.080192E-06']

It is easy to extract

>>> liste[1]
'-1.878722E-08,'
>>> liste[2]
'3.835992E-11'

but

>>> liste[3]
'1.192970E-03,-5.080192E-06'

How can I accomplish that ?

Nils



More information about the NumPy-Discussion mailing list