some_list = ['11', '22', '33']
for i in some_list:
c.execute("INSERT INTO dbtable (dbcolumn) VALUES (?)", (i))
返回错误:
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 2 supplied.
它爆炸'11'
成字符。
这里有什么问题?