Plot all contents in a two dimension list in a loop?

2011-12-11 Thread huisky
Huisky -- http://mail.python.org/mailman/listinfo/python-list

Re: Read time and date from a text file

2010-11-24 Thread huisky
On Nov 24, 2:45 pm, Peter Otten <__pete...@web.de> wrote: > huisky wrote: > > I see the problem of year. But the question is the source file does > > NOT provide the year information. > > for instance if i have one record as ['Dec','6','2

Re: Read time and date from a text file

2010-11-24 Thread huisky
On Nov 24, 2:09 pm, Peter Otten <__pete...@web.de> wrote: > huisky wrote: > > As a newbie, I posted my question here again. > > say i have two dics read from a text file by 'split'. > > Please don't start a new thread when you are still aski

Read time and date from a text file

2010-11-24 Thread huisky
>> ccompl defaultdict(, {15424: ['Dec', '6', '19:42:55'], 18291: ['Dec', '6', '21:01:28'], 15500: ['Dec', '6', '20:26:03'], 18863: ['Dec', '7', '13:24:07']}) and I need to ca

Time and date operation

2010-11-23 Thread huisky
27;Dec', '6', '19:42:55'], 18291: ['Dec', '6', '21:01:28'], 15500: ['Dec', '6', '20:26:03'], 18863: ['Dec', '7', '13:24:07']}) and I need to calculate the difference time if the key value is the same in both dics. thanks in advance Huisky -- http://mail.python.org/mailman/listinfo/python-list

Re: How to read such file and sumarize the data?

2010-11-18 Thread huisky
Thank you very much for your reply. I think you just count the total number of NCPU used for each user. And it does NOT show how much time used for each user. Huisky On Nov 18, 12:10 am, Steve Holden wrote: > On 11/17/2010 4:45 PM, huisky wrote:> Say I have following log file, which >

Re: How to read such file and sumarize the data?

2010-11-18 Thread huisky
the number before @ is the process id in the linux server and it is identical. So i do NOT think distinguish each job's starting and ending time is difficult in this case. Huisky On Nov 17, 11:38 pm, Tim Harig wrote: > On 2010-11-17, huisky wrote: > > > I want to read thi

Re: How to read such file and sumarize the data?

2010-11-18 Thread huisky
Huiksy On Nov 18, 12:38 am, Martin Gregorie wrote: > On Wed, 17 Nov 2010 13:45:58 -0800, huisky wrote: > > Say I have following log file, which records the code usage. I want to > > read this file and do the summarize how much total CPU time consumed for > > each user. > &

How to read such file and sumarize the data?

2010-11-17 Thread huisky
Say I have following log file, which records the code usage. I want to read this file and do the summarize how much total CPU time consumed for each user. Is Python able to do so or say easy to achieve this?, anybody can give me some hints, appricate very much! Example log file. *

Re: Interactive mode under DOS?

2010-10-24 Thread huisky
On Oct 24, 1:15 pm, Peter Otten <__pete...@web.de> wrote: > huisky wrote: > > Hi, > > > I'm trying to use the interactive mode under DOS for Python 2.7. As a > > newbie, I do NOT know what is the following problem: > > >>>>world_is_flat=1 >

Interactive mode under DOS?

2010-10-24 Thread huisky
Hi, I'm trying to use the interactive mode under DOS for Python 2.7. As a newbie, I do NOT know what is the following problem: >>>world_is_flat=1 >>>if world_is_flat: . . . print "be carefule to be not fall out!" File "", line 2 print "be carefule to be not fall out!" ^ In