码迷,mamicode.com
首页 > 编程语言 > 详细

python web.py出现ValueError: need more than 1 value to unpack

时间:2017-10-04 15:18:46      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:pytho   pat   turn   unp   dex   src   packages   运行   path   

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

标签:pytho   pat   turn   unp   dex   src   packages   运行   path   

原文地址:http://www.cnblogs.com/creativepower/p/7625626.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!