values = tuple(generatevalues(q))try: a, b, c, x, y, z = valuesexcept ValueError as e: print(len(values)) # for example print(values)为了调试这个功能-这是学习的一个很好的时间调试values = tuple(generatevalues(q))try: a, b, c, x, y, z = valuesexcept ValueError as e: import pdb; pdb.set_trace()