Is there a simple function to generate a list like ['a', 'b', 'c', ... 'z']?

人言落日是天涯,望极天涯不见家 kelvin.you at gmail.com
Mon Apr 9 04:45:47 EDT 2007


On Apr 9, 4:39 pm, Thomas Krüger <newsgro... at nospam.nowire.org> wrote:
> 人言落日是天涯,望极天涯不见家 schrieb:
>
> > Is there a simple function to generate a list like ['a', 'b', 'c', ...
> > 'z']?   The range() just can generate the numeric list.
>
> There is:
> [ chr(i) for i in range(97, 123) ]
>
> Thomas

Thanks you too! I'm a beginner of python.


More information about the Python-list mailing list