Re: Loop three lists at the same time?

2007-11-13 Thread kelvin.you
On 11 13 , 6 46 , Davy <[EMAIL PROTECTED]> wrote: > Hi all, > > I have three lists with the same length. Is there any method to loop > the three lists without a loop counter? > > Best regards, > Davy Maybe you just need this:-) >>> list1 = [1, 2, 3] >>> list2 = [4, 5, 6] >>> list3 = [7, 8, 9] >>

Re: Floating Number format problem

2007-06-12 Thread kelvin.you
On 6 12 , 3 16 , ici <[EMAIL PROTECTED]> wrote: > On Jun 12, 10:10 am, <[EMAIL PROTECTED]> wrote: > > > > > How could I format the float number like this: (keep 2 digit > > precision) > > 1.002 => 1 > > 1.12 => 1.12 > > 1.00 => 1 > > 1.567 => 1.57 > > 2324.012 => 2324.01 > > > I

Re: Why can not catch the inner exception

2007-06-07 Thread kelvin.you
On 6 7 , 10 53 , "Mark T" <[EMAIL PROTECTED]> wrote: > " " <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > > > Please see the follow code, I can not catch the exception " IOError" > > raised from shutil.copyfile() , why? > >try: > >