scanf in python

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Jul 24 11:56:02 CEST 2008


In message <4884e77a$0$29405$426a74cc at news.free.fr>, AMD wrote:

> Actually it is quite common, it is used for processing of files not for
> reading parameters. You can use it whenever you need to read a simple
> csv file or fixed format file which contains many lines with several
> fields per line.

I do that all the time, in Python and C++, but I've never felt the need for
a scanf-type function.

For reading delimited fields in Python, you can use .split string method.



More information about the Python-list mailing list