可以参考:
也可以参考我的代码:
https://github.com/zhf19970510/Pagination.git
Flask实现分页功能
原文:https://www.cnblogs.com/zhf123/p/11581880.html