我在 python 中的这个 sqlite3 语句中的绑定有问题。任何帮助将不胜感激。谢谢
print page
print section
cur.execute('SELECT * FROM docList WHERE pageFileName = ? AND sectionTitle = ?',(page,section,))
这是输出
(u'current_reports.html',)
(u'Intro',)
Traceback (most recent call last):
File "C:\Work\Dropbox\Public\www\propagateIndex.py", line 65, in <module>
cur.execute('SELECT * FROM docList WHERE pageFileName = ? AND sectionTitle = ?',(page,section,))
InterfaceError: Error binding parameter 0 - probably unsupported type.
>>>
我已经阅读了很多关于此的其他帖子,但我仍然不确定该怎么做。尝试不同