ValueError not enough values to unpack expected 2 got 1
This error occurs when you are trying to unpack too few values from an iterable. In Python, unpacking is the process of assigning values from an iterable (like a tuple or a list) to multiple variables in one step.
For example:
a, b = (1, 2, 3)
This will raise a value error because we are trying to unpack three values into two variables.
In your case, it seems that you are expecting to unpack two values from an iterable, but there is only one value present. You should check the code where the unpacking is happening and verify that the iterable has the expected number of values
原文地址: https://www.cveoy.top/t/topic/ha2g 著作权归作者所有。请勿转载和采集!