会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
山城小跳
博客园
首页
新随笔
联系
管理
订阅
2023年6月9日
python中如何实现向上取整
摘要: ##方式一 ```python import math total_page_count = math.ceil(10/4) # 3 ``` ##方式二 ```python # total_page_count, div = divmod(total_count, page_size) # if d
阅读全文
posted @ 2023-06-09 16:46 字母一哥
阅读(49)
评论(0)
推荐(0)
编辑