1.具体实现 #!usr/bin/env python # -*- coding:utf-8 -*- from flask import Flask,render_template,request,redirect from pager import Pagination from urllib.parse import urlencode app = Flask(__name__) @app.route('/pager') def pager(): li = [] for i in range