Re: Re: extra a column from a 2-D array?

2005-05-10 Thread Whoami
Uwe Lauth,您好!

 Very good!

=== 2005-05-10 18:57:38 您在来信中写道:===

>Joe Wong wrote:
>(original posting not on my nntp server)
>>>Hello,
>>> 
>>> Suppose I have a python array as follow:
>>> 
>>>s=[ [1,3,5],
>>>[2,4,6],
>>>[9,8,7]]
>>> 
>>>what is the quickest way to extract the second colum from all rows? That 
>>>is: [3,4,8] in this example.
>
>[a[1] for a in s]
>
>Uwe
>
>-- 
>http://mail.python.org/mailman/listinfo/python-list

= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
Whoami
[EMAIL PROTECTED]
  2005-05-10

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Module on Getting the Date & Time

2005-05-10 Thread Whoami
Simon Brunning,您好!


>>> import time
>>> current = time.time()
>>> time.localtime(current)
(2005, 5, 10, 19, 28, 14, 1, 130, 0)
>>> time.ctime(current)
'Tue May 10 19:28:14 2005'

=== 2005-05-10 19:09:42 您在来信中写道:===

>On 5/10/05, Sara Khalatbari <[EMAIL PROTECTED]> wrote:
>> Is there a Modules in Python that returns the time &
>> date of today when ran?
>
>http://www.google.com/search?q=python+time+date
>
>-- 
>Cheers,
>Simon B,
>[EMAIL PROTECTED],
>http://www.brunningonline.net/simon/blog/
>-- 
>http://mail.python.org/mailman/listinfo/python-list
>

= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
Whoami
[EMAIL PROTECTED]
  2005-05-10

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Re: Module on Getting the Date & Time

2005-05-10 Thread Whoami
Simon Brunning,您好!


>>> import time
>>> current = time.time()
>>> time.localtime(current)
(2005, 5, 10, 19, 28, 14, 1, 130, 0)
>>> time.ctime(current)
'Tue May 10 19:28:14 2005'

=== 2005-05-10 19:09:42 您在来信中写道:===

>On 5/10/05, Sara Khalatbari <[EMAIL PROTECTED]> wrote:
>> Is there a Modules in Python that returns the time &
>> date of today when ran?
>
>http://www.google.com/search?q=python+time+date
>
>-- 
>Cheers,
>Simon B,
>[EMAIL PROTECTED],
>http://www.brunningonline.net/simon/blog/
>-- 
>http://mail.python.org/mailman/listinfo/python-list
>

= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
Whoami
[EMAIL PROTECTED]
  2005-05-10

-- 
http://mail.python.org/mailman/listinfo/python-list