python sqlite3 record is not inserting into the database with a placeholder function
问题 this code is not inserting my list(self.list2) into the database 'main.db'. I read the the following posts already and they all seem to use the idea of using join() to create # of place holders based on the length of the list. Dynamically creating a placeholder to insert many column values for a row in SQLite table Inserting to sqlite dynamically with Python 3 the code is running without errors. I tested the code by printing return (f"{', '.join('?' * len(input))}") and it prints "?, ?, ?, ?