IndexError:列表索引超出范围:Python

时间:2018-06-05 13:41:15

标签: python python-3.x

我在浏览器上尝试使用我的python脚本但是我一直收到这个错误。我忽略了什么吗?

<!-- The above is a description of an error in a Python program, formatted
 for a Web browser because the 'cgitb' module was enabled.  In case you
 are not reading this in a Web browser, here is the original traceback:

追踪(最近一次呼叫最后一次):

File "./index.py", line 50, in &lt;module&gt;
    cid = app.db.execute('select id from clients where status="active" order by id desc limit 1')[0][0]
IndexError: list index out of range

0 个答案:

没有答案