Sort List
M.-A. Lemburg
mal at lemburg.com
Fri Oct 15 06:16:47 EDT 1999
sorot at my-deja.com wrote:
>
> I'm the newbie of Python. I wonder that is there any function for
> sorting list alphabetically? And is there any function to get the date
> and time of OS?
a. list = [1,3,4]
list.sort()
b. import time
print time.localtime(time.time())
See the Python docs for more details.
--
Marc-Andre Lemburg
______________________________________________________________________
Y2000: 77 days left
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/
More information about the Python-list
mailing list