Question:
When using pymysql, the find() function returns a query result of type cursor
at that time, it was thought that what was returned was a list, so the len() function was directly used to calculate the length in the following loop. But an error is reported, such as the title information, which means that the returned data is of cuesor type, and the len() function is not supported.
Solution:
Use. Rowcount
to
Read More:
- Typeerror: object of type ‘response’ has no len() why?
- TypeError: object of type ‘builtin_function_or_method’ has no len()
- AttributeError: type object ‘Image‘ has no attribute ‘open‘
- Solution: attributeerror: type object ‘ioloop’ has no attribute ‘initialized’
- [Solved] spacy Install Error: AttributeError: type object ‘_CleanResult‘ has no attribute ‘from_link‘
- ERROR 1406 (22001): Data Too Long, field len 30, data len 48
- Attributeerror: object has no attribute
- AttributeError: ‘NoneType‘ object has no attribute ‘append‘
- AttributeError: ‘numpy.ndarray‘ object has no attribute ‘softmax‘
- AttributeError:‘AxesSubplot’object has no attribute‘bar_label’
- Debug | AttributeError: ‘numpy.int64‘ object has no attribute ‘to_pydatetime‘
- AttributeError: ‘Tensor‘ object has no attribute ‘_numpy‘
- AttributeError: ‘_io.TextIOWrapper‘ object has no attribute ‘softspace‘
- Attributeerror: ‘STR’ object has no attribute ‘decode’ solution: the pro test is successful.
- Python AttributeError: ‘bool‘ object has no attribute ‘ui‘
- Attributeerror: ‘bytes’ object has no attribute’ encode ‘
- Attributeerror: ‘dataframe’ object has no attribute ‘IX’ error
- AttributeError: ‘WebDriver‘ object has no attribute ‘w3c‘
- Googlenet Error: ‘GoogLeNetOutputs‘ object has no attribute ‘data‘
- Problem: attributeerror: ‘tensor’ object has no attribute ‘creator’