On Apr 9, 2:29 am, "人言落日是天涯,望极天涯不见家" <[EMAIL PROTECTED]> wrote:
> Is there a simple function to generate a list like ['a', 'b', 'c', ...
> 'z']?   The range() just can generate the numeric list.

Not very simple, but how about a list comprehension:

import string

lst = [char for char in string.letters[:26] ]
print lst
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to