解决问题:

解决Python中出现的ValueError: not enough values to unpack (expected 2, got 1)的问题

成功解决Python中出现的ValueError: not enough values to unpack (expected 2, got 1)的问题成功解决Python中出现的ValueError: not enough values to unpack (expected 2, got 1)的问题

解决思路

  值错误,没有足够的值解压(期望2,得到1)。出现错误的原因是读取的文件有问题,读取的文件内不能包含换行符。

解决方法

将txt文件的内容中所有的换行去掉即可!

成功解决Python中出现的ValueError: not enough values to unpack (expected 2, got 1)的问题

哈哈,大功告成!

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-08-17
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-11
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案