Python sqlite3.0错误:接近;价值观:语法错误

Python sqlite3.0错误:接近;价值观:语法错误,python,sqlite,Python,Sqlite,似乎没有什么问题,但它返回: sqlite3.error:接近“值”:语法错误 并且users.db仍然为空否。。我明白了 username = input("Username: ") password = input("Password: ") authority = input("Authority level (1 or 2): ") name = input("Name : ") surname = input("Surname : ") idnum =

似乎没有什么问题,但它返回:

sqlite3.error:接近“值”:语法错误

并且users.db仍然为空

否。。我明白了

username = input("Username: ")
password = input("Password: ")
authority = input("Authority level (1 or 2): ")
name = input("Name           : ")
surname = input("Surname        : ")
idnum = input("Identity Number: ")
c.execute("CREATE TABLE IF NOT EXISTS userInfo(username TEXT, password TEXT, authority TEXT, name TEXT, "
          "surname TEXT, idnum TEXT)")
c.execute("INSERT INTO userInfo VALUES(username, password, authority, name, surname, idnum) "
          "VALUES(?, ?, ?, ?, ?, ?)",
          (username, password, authority, name, surname, idnum))

conn.commit()
值正在发生此错误

我讨厌当我把问题贴在这里的时候(我至少在思考了一个小时后贴在这里),我立刻找到了答案

c.execute("INSERT INTO userInfo (username, password, authority, name, surname, idnum) "