Python自学笔记-Django分页器小实例
from django.core.paginator import Paginator iter = 'abcdefhijklmnopqw' paginator = Paginator(iter,4) paginator.page(1) <Page 1 of 5> page1 = paginator.page(1) page1.object_list 'abcd' page3 = paginator.page(3) page3.object_list 'jklm'
posted on 2017-08-23 16:47 William126 阅读(180) 评论(0) 编辑 收藏 举报