Добавление превращает мой список в NoneType

В оболочке Python , Я ввел:

aList = ['a', 'b', 'c', 'd']  
for i in aList:  
    print(i)

и получил

a  
b  
c  
d  

, но когда я попытался:

aList = ['a', 'b', 'c', 'd']  
aList = aList.append('e')  
for i in aList:  
    print(i) 

и получил

Traceback (most recent call last):  
  File "<pyshell#22>", line 1, in <module>  
    for i in aList:  
TypeError: 'NoneType' object is not iterable  

Кто-нибудь знает, что происходит? Как я могу это исправить / обойти?

29
задан SilentGhost 1 October 2010 в 15:52
поделиться