Python divmod方法时间:2023-03-08 21:48:13 有95条数据 每十条存一页 all_item = 95 pager = 10 result = all_item.__divmod__(pager) print(result) (9{商},5{余数})