Python自学笔记-Django分页器小实例
摘要:from django.core.paginator import Paginator iter = 'abcdefhijklmnopqw' paginator = Paginator(iter,4) paginator.page(1) page1 = paginator.page(1) page1.object_list 'abcd' page3 = paginator.page(3) pa...
阅读全文
posted @ 2017-08-23 16:47