报错 sqlalchemy.exc.InvalidRequestError: Can’t operate on closed transaction inside context manager. Please complete the context manager before emitting further commands. 原因 在使用with session.begin()的代码块中使用了commit或者rollback;自动提交中不能手动执行事物动作