read input file a line as a list in python
Phil Frost
indigo at bitglue.com
Tue Aug 17 14:48:03 EDT 2004
pydoc string.split
pydoc file
pydoc sre
On Tue, Aug 17, 2004 at 01:40:32PM -0500, Yong Wang wrote:
> Hi, All:
> I need to read a input file as soucre to process data. Ideally
> if I can read a line from input file as a list (coloumn separate by
> white space), reorganize field in a line. Does python has this kind of
> command ?
> for example, I read a line has:
> "IP MAC Date..." as a line from input file, How can I only get MAC ?
> Thanks,
>
> Yong
More information about the Python-list
mailing list