When writing python3 code, when running,
an error is reported. This class object is not subscriptible
reports that it has no subscript, but when the subscript is used, check the code carefully. Sure enough,
there is a place where I want to use the attribute under the class. I am not “dot”, but []
which causes this error. I must check patiently where this class attribute is used
if job.mode == value or job['mode'] == value:
go through
if job.mode == value or job.mode == value
Read More:
- Python error: typeerror: ‘Int’ object is not subscriptable
- Python reported error: typeerror:’int’object is not subscriptable
- Python 3 error typeerror: ‘dict’_ keys‘ object is not subscriptable
- ‘builtin_ function_ or_ Method ‘object is not subscriptable error
- Python error prompt: typeerror: ‘builtin’_ function_ or_ method‘ object is not subscriptable
- Python custom class typeerror: ‘module’ object is not callable
- TypeError: ‘numpy.int64′ object is not iterable ,’int’ object is not iterable
- The background object of thymeleaf is null, which solves the problem of error when the object is empty to get the property value
- Python error: typeerror: ‘Int’ object is not subscribable
- TypeError: ‘int’ object is not iterable
- Python error: typeerror: ‘module’ object is not callable
- Typeerror: ‘module’ object is not callable
- Type error: object (…) is not a function
- Object of type timestamp is not JSON serializable
- TypeError: this.getOptions is not a function at Object.lessLoader
- C++ Error: allocating an object of abstract class type
- The differences between the equals method in the string class and the equals method in the object class
- Typeerror in Python: ‘nonetype’ object is not Iterable
- Type error at XXX ‘set’ object is not reversible
- Uncaught (in promise) TypeError: Object(…) is not a function