Объект карты Python не подлежит подписке

Почему следующий скрипт выдает ошибку:

payIntList [i] = payIntList [i] + 1000
TypeError: объект 'map' не может быть подписан

payList = []
numElements = 0

while True:
        payValue = raw_input("Enter the pay amount: ")
        numElements = numElements + 1
        payList.append(payValue)
        choice = raw_input("Do you wish to continue(y/n)?")
        if choice == 'n' or choice == 'N':
                         break

payIntList = map(int,payList)

for i in range(numElements):
         payIntList[i] = payIntList[i] + 1000
         print payIntList[i]
59
задан Ethan Furman 9 November 2011 в 21:38
поделиться