c.execute("INSERT INTO address VALUES (:f_name, : l_name, :address, :city, :zipcode)",
{
'f_name': f_name.get(),
'l_name': l_name.get(),
'address': address.get(),
'city': city.get(),
'state': state.get(),
'zipcode': zipcode.get()
})
sqlite3.OperationalError:无法识别的令牌:“:”
答案 0 :(得分:0)
问题出在: l_name,
上,:
后面有一个空格,这会导致您的错误。
c.execute("INSERT INTO address VALUES (:f_name, : l_name, :address, :city, :zipcode)",
c.execute("INSERT INTO address VALUES (:f_name, :l_name, :address, :city, :zipcode)",