2023年3月20日

django中使用分页器功能

摘要: 要使用Django实现分页器,必须从Django中导入Paginator模块 from django.core.paginator import Paginator 假如现在有150条记录要显示,每页显示10条 >>> from django.core.paginator import Pagina 阅读全文

posted @ 2023-03-20 22:24 一先生94 阅读(21) 评论(0) 推荐(0) 编辑

python中的any()

摘要: any()源码: def any(*args, **kwargs): # real signature unknown """ Return True if bool(x) is True for any x in the iterable. If the iterable is empty, re 阅读全文

posted @ 2023-03-20 22:08 一先生94 阅读(349) 评论(0) 推荐(0) 编辑

导航