sqlite3报错SQLite objects created in a thread can only be used in that same thread
多线程中数据库操作报错SQLite objects created in a thread can only be used in that same thread需要将数据库连接修改为以下形式加上“check_same_thread=False”之后,在多线程下,数据库才不会报错conn=sqlite3.connect(db_path, timeout=10, check_same_thread=False)cur=conn.cursor()...