sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.

sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.

Lan
Lan
2020-07-17 / 0 评论 / 1,204 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2020年07月17日,已超过1372天没有更新,若内容或图片失效,请留言反馈。

爬学校电费余额系统存到本地数据库时,开了多线程(车速过快),于是就报错了

sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 12960 and this is thread id 13904.

QQ截图20200717022652.jpg在链接sqlite的时候加上check_same_thread=False即可

1

评论 (0)

取消