Generator Object Is Not Subscriptable

TypeError 'generator' object is not subscriptable,错误的原因就是把不具有下标操作对象用了

Generator Object Is Not Subscriptable. 'generator' object is not subscriptable. Worksheet.columns returns a generator (as the error suggests).

TypeError 'generator' object is not subscriptable,错误的原因就是把不具有下标操作对象用了
TypeError 'generator' object is not subscriptable,错误的原因就是把不具有下标操作对象用了

Modified 9 years, 3 months. Sheet.rows probably (as your error message suggests) is a generator of rows, that's. Web the part “is not subscriptable” tells us we cannot access an element of the generator object using the subscript operator, which. Web if you try to access the items in a data type that isn't indexable, python raises a typeerror: Web generators aren't subscriptable. Worksheet.columns returns a generator (as the error suggests). Web generator object is not subscriptable a generator object is not subscriptable because it is an iterable. Asked 9 years, 3 months ago. Web generator objects are not subscriptable, it means that you cannot use square brackets to access them. If you want to index parray, make it a list instead.

If you want to index parray, make it a list instead. Web generator objects are not subscriptable, it means that you cannot use square brackets to access them. Web generator object is not subscriptable a generator object is not subscriptable because it is an iterable. 'generator' object is not subscriptable. Modified 9 years, 3 months. Worksheet.columns returns a generator (as the error suggests). Web if you try to access the items in a data type that isn't indexable, python raises a typeerror: Web generators aren't subscriptable. Web the part “is not subscriptable” tells us we cannot access an element of the generator object using the subscript operator, which. If you want to index parray, make it a list instead. Asked 9 years, 3 months ago.