python数据库访问

取得rs,使用,报错

sqlite3.Cursor' object has no attribute '__getitem__'

原因:使用时conn已经关闭了。

解决:用fetchall取出传递回来即可。

原文地址:https://www.cnblogs.com/jetz/p/6957607.html