dongzhi at gmail.com
Wed Dec 10 06:40:08 CET 2008
I have one problem for List. Like that:
format='just "a" ""little"" test'
part = format.split('"')
the result is : ['just ', 'a', ' ', '', 'little', '', ' test']
the list part have 7 element.
If I execute part, I have got 'a'. If I execute part, I have
got ' '. But, if I execute part[1::2], I have got ['a', '', '']. I
don't know why. Please tell me why.
More information about the Python-list