newbe how to read in a string?

Joshua Marshall jmarshal at mathworks.com
Fri Mar 23 09:54:33 EST 2001


William Famy <william.famy at noos.fr> wrote:
> Hi.

> I am looking how to read in a string.

> Ex
> a='2000/12/28,24.3,87.1,65.4'

> I whant to extract the 87.1. In C i would code by a
> scanf("%s,%f,%f,%f\n"),...

> How can i do this in python?

I don't think there's any generic way.  It would be nice to see
something similar to scanf in Python.



More information about the Python-list mailing list