到目前为止,这是我拥有的代码,我不断收到一条错误消息:“sqlite3.OperationalError: near ")": syntax error"
import sqlite3
con = sqlite3.connect("DatabaseName.sql")
cur = con.cursor()
cur.execute("""CREATE TABLE Contacts (Fname TEXT,
Lname TEXT, Phone INTEGER,)""")
Fname = input("Enter first name: ")
Lname = input("Enter last name: ")
Phone = input("Enter telephone number(no dashes or spaces): ")
Phone = int(Phone)
cur.execute("""INSERT INTO Contacts (Fname, Lname, Phone, joined_club)
VALUES (?,?,?)""", (Fname,Lname,Phone))
con.commit()
cur.close()
con.close()