string in files
00515879256 at fastwebnet.it
Wed Dec 31 09:29:19 CET 2008
Steven D'Aprano ha scritto:
> On Tue, 30 Dec 2008 11:53:17 +0100, Glauco wrote:
>>> thanks brother
>>> i mean how do i particularly assign (u = this)
>>> (y = is)....
>>> in the strings up there. i have been able to split strings with any
>>> character sign.
>> If i'm not wrong this is simple with RE:
> If that's your idea of "simple", I'd hate to see what you consider
> *Simple* is just using the split method.
> a, b, c, d, e, f = 'this is a python coding group'.split()
I've done a lot of file import procedure and IMHO this solution help you
in all situation. You can validate line before import, you can do a
specific RE for check a more detailed line and so on, it's more powerful.
For simple i mean simple programming code.
More information about the Python-list