Keine Notwendigkeit, Art von Hand:
Python: -
Alphabets = 'abcdefghijklmnopqrstuvwxyz "
Dieser druckt die kleinen Buchstaben:
Python: ( chr , range ( 97 , 123 ) ) print map (chr, Reichweite (97, 123))
Und das ist der Fall:
Python: ( chr , range ( 65 , 91 ) ) print map (chr, Reichweite (65, 91))
Sie können aber auch auf Python selbst (Batterien im Lieferumfang enthalten rechnen, nachdem alle!)
Python: import ascii_letters von string importieren ascii_letters
print ascii_letters
Und wieder:
Python: Import-String
. ascii_lowercase print-String. ascii_lowercase
. ascii_uppercase print-String. ascii_uppercase