List Problem

2008-12-09 Thread dongzhi
Hi All, I have one problem for List. Like that: format='just "a" ""little"" test' part = format.split('"') print part the result is : ['just ', 'a', ' ', '', 'little', '', ' test'] the list part have 7 element. If I execute part[1], I have got 'a'. If I execute part[2], I have got ' '. But, i

Re: List Problem

2008-12-09 Thread dongzhi
On Dec 10, 2:00 pm, "James Mills" <[EMAIL PROTECTED]> wrote: > On Wed, Dec 10, 2008 at 3:40 PM, dongzhi <[EMAIL PROTECTED]> wrote: > > If I execute part[1], I have got  'a'. If I execute part[2], I have > > got ' '. But, if I execute p