OUTPUT:-Python TypeError: int object is not subscriptable. Asking for help, clarification, or responding to other answers. Thus, in the above example, when we tried to access the index of an integer and then reverse it, Python raised – TypeError:'int' object is not subscriptable . Ask Question Asked today. the surface, so the GUI is white, no buttons etc. TypeError: 'function' 该对象未订阅。 - Python - it-hell.com DatasetV1Adapter object is not subscriptable Ask Question Asked 4 years ago. object is not subscriptable This means that you tried to do: None [something] NoneType is the type of the None object which represents a lack of value, for example, a function that does not explicitly return a value will return None . TypeError: 'function' object is not subscriptable I don't understand where this is coming from... python. NoneType' object is not subscriptable ex: ;joe; 19 - age. Try this in your code: 1. lst = open (input ("Input file name: "), "r").readlines () Also, you aren’t closing the file object, this would be better: 1. object is not subscriptable A list is, as you’re doing with products[index]. 提交. Zuerst müssen wir die Bedeutung dieses Fehlers verstehen, und wir müssen wissen, was mit subskriptierbar gemeint ist. object is not subscriptable You cannot retrieve items from a None value using the subscript operator. : 与内容相关的链接. A list is, as you’re doing with products[index]. We respect your privacy and take protecting it seriously When working with classes one of the errors you may face is the `TypeError: ‘X’ object is not subscriptable ‘ where X is the name of your class.