TypeError: cannot unpack non-iterable NoneType object

Python error:

TypeError: cannot unpack non-iterable NoneType object

the number of the paper is mainly due to the wrong function return value caused by inconsistent, so need to pay attention to the function returns the number of values is in agreement with the receiving object number.

solution: check the function return value number and call a function when receiving the return value is the number of consistent, can be modified to consistent.

Similar Posts: