ValueError: need more than 0 values to unpack

Split () error, valueError: need more than 0 values to unpack

Check the data, it is found that the number of variables on the left and right sides is inconsistent. Carefully check, it is found that there is an empty behavior in the TXT read at the end, so that there is no value after the split at the end, so it cannot be copied to the two variables on the left.

As shown in the figure, delete the last line of space and rerun it.

Therefore, when this error occurs, make sure that the content on both sides is correct.

Read More: