python web.py出现ValueError: need more than 1 value to unpack
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python web.py出现ValueError: need more than 1 value to unpack相关的知识,希望对你有一定的参考价值。
web.py运行代码时出现
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 239, in process
return self.handle()
File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 229, in handle
fn, args = self._match(self.mapping, web.ctx.path)
File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 427, in _match
for pat, what in mapping:
ValueError: need more than 1 value to unpack
行与行之间缺少逗号
比如我的错误是‘index‘后缺少逗号
以上是关于python web.py出现ValueError: need more than 1 value to unpack的主要内容,如果未能解决你的问题,请参考以下文章
python-sklearn中出现“ValueError:预期的二维数组,得到一维数组”错误[重复]
python 运行出现flask运行时提示出错了或者报服务器出错,ValueError: View function did not return a response
❤️小白必看❤️带你避开python大坑❤️在使用openpyxl时,出现ValueError: Unknown engine: openpyxl