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.
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:
- ValueError: too many values to unpack
- ValueError: not enough values to unpack (expected 2, got 0)
- ValueError: not enough values to unpack (expected 6, got 1)
- Python3-ValueError:not enough values to unpack (expected 2, got 0)
- Error occurred when Python called cv2.findcontours: valueerror: not enough values to unpack (expected 3, got 2)
- for k, v in k_map: ValueError: too many values to unpack (expected 2)
- Error: improvement of not enough values to unpack (expected 2, got 1)
- valueError: Length mismatch: Expected axis has 40 elements, new values have 38 elements
- Git push failed, prompt unpack error / unpack failed solution
- Android:More than one file was found with OS independent path ‘res/values/values.xml
- Pandas sort according to a column_ values)
- ValueError: need at least one array to concatenate
- Ora-00947: not enough values
- Tensorflow error: attributeerror: module ‘tensorflow’ has no attribute ‘unpack’ (‘pack ‘)
- Tensorflow ValueError: Failed to convert a NumPy array to a Tensor
- ValueError: Integers to negative integer powers are not allowed.
- error occurred during unpacking on the remote end: unpack-objects abnormal exit
- The pyinstaller settings icon appears“ struct.error : unpack requires a buffer of 16 bytes”
- JQuery: How to get the selected values of checkbox, radio and select
- When using freemaker template to get values, an error is reported when the attribute is empty