2020年3月19日
摘要: class sqlHandler(): def __init__(self): self.connect() def connect(self): self.conn = conn = pymysql.connect(host="127.0.0.1", port=3306, user="root", 阅读全文
posted @ 2020-03-19 19:10 仙人小麦 阅读(189) 评论(0) 推荐(0) 编辑
摘要: utils/pager.py class Pagination(object): def __init__(self, current_page, all_count, base_url, query_params, per_page=30, pager_page_count=11): """ 分页 阅读全文
posted @ 2020-03-19 19:07 仙人小麦 阅读(1038) 评论(0) 推荐(0) 编辑