Re: how to modify row content of file in python?

2009-10-27 Thread Simon Hibbs
On 27 Oct, 07:55, holmes86 wrote: > hi,everyone > > Is there function of modify row content in python? just like 'sed' in > shell,thanks You would do something like this, which acepts a CSV file from stdin and sends the first column to stdout (prints it), which you could redirect to a file or pip

Re: how to modify row content of file in python?

2009-10-27 Thread Gabriel Genellina
En Tue, 27 Oct 2009 05:50:47 -0300, Lutz Horn escribió: * holmes86 [Tue, 27 Oct 2009 00:55:36 -0700]: Is there function of modify row content in python? just like 'sed' in shell,thanks Sed doesn't actually modify the contents of a file. In normal operation mode it reads from STDIN and writ

how to modify row content of file in python?

2009-10-27 Thread holmes86
hi,everyone Is there function of modify row content in python? just like 'sed' in shell,thanks -- http://mail.python.org/mailman/listinfo/python-list