取得rs,使用,报错

sqlite3.Cursor' object has no attribute '__getitem__'

 

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

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

相关文章: