此处用filter不用filter_by example: list = [1,2,3,4] Student.query.filter(Student.id.in_(list)).all() 更多参考:https://www.jianshu.com/p/196b7892cf38