my cryptogram program
bruno at modulix
onurb at xiludom.gro
Tue May 16 16:33:59 CEST 2006
John Salerno wrote:
> Bruno Desthuilliers wrote:
>> At least someone reading this may learn about the max_split param of
>> str.split() !-)
> LOL. The first thing I did was scramble to the docs to see what that
> second parameter meant! :)
> But I was a little confused about why you included it. Just to insure
> that only two elements are returned?
Yes. It may or not be a wise choice. Depends on the context, your
> I plan on making either a text file
> or a database with quotes in that format (quote|author), so maybe the
> maxsplit isn't needed?
It's up to you.
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list