首页
科技
登录
6mi
u
盘
搜
搜 索
科技
python实现简单的分页函数
python实现简单的分页函数
it
2022-05-05
132
def page_helper(my_list, current_page=1, page_size=10): start = (current_page - 1) * page_size end = start + page_size return {'rows': my_list[start:end], 'total': len(my_list)}
转载请注明原文地址: https://win8.8miu.com/read-12086.html
专利
最新回复
(
0
)