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'后缺少逗号

 

posted @ 2017-10-04 14:34  启动  阅读(2118)  评论(0编辑  收藏  举报