from django.core.paginator import Paginator #导入Paginator objects = ['john','paul','george','ringo','lucy','meiry','checy','wind','flow','rain'] #准备好分页的数据 p = Paginator(objects,3) #实例化分页对象,每页3条数据 print(p.count) #分页对象一共有多少个元素 ---> 10 print(p.num_pages)…