【发布时间】:2011-04-23 18:55:43
【问题描述】:
以下作品:
>>> cursor.execute("select * from sqlitetable where rowid in (2,3);")
以下不是:
>>> cursor.execute("select * from sqlitetable where rowid in (?) ", [[2,3]] )
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
有没有一种方法可以传入 python 列表而不必先将其格式化为字符串?
【问题讨论】: