明明加了锁保护,还是出了下面的问题
ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 4460 and this is thread id 7608
解决方式:
sqlite3.connect(fp,check_same_thread = False)
明明加了锁保护,还是出了下面的问题
ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 4460 and this is thread id 7608
解决方式:
sqlite3.connect(fp,check_same_thread = False)