Python divmod方法
生活随笔
收集整理的這篇文章主要介紹了
Python divmod方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
有95條數據 每十條存一頁
all_item = 95
pager = 10?
result = all_item.__divmod__(pager)
print(result)
(9{商},5{余數})
轉載于:https://www.cnblogs.com/Presley-lpc/p/9136100.html
總結
以上是生活随笔為你收集整理的Python divmod方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: async/await工作机制探究--N
- 下一篇: 通过angular.js实现MVC的基本