Python's qw
A Puzzled User
kendear_nospam at nospam.com
Fri May 16 18:50:39 EDT 2003
> Erik Max Francis wrote:
>
>>
>> I've seen similar things used [e.g., 'sunflower tulip jasmine'.split()],
>> so it's not uncommon. I prefer the old fashioned way, myself.
Thanks for Erik's line and for Fernando. So I am using
>>> '''
a
b
c
'''.split()
['a', 'b', 'c']
# I thought at first i had to use something like
>>> '''
a
b
c
'''.split("\n")[1:-1]
['a', 'b', 'c']
More information about the Python-list
mailing list