会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
即见吊雷,云胡不喜。
九重天外见轩辕,四面八方皆吊雷。
博客园
首页
新随笔
联系
订阅
管理
04 2021 档案
python 取整
摘要:向上取整: math.ceil() 向下取整: int() 四舍五入: round() 分别取整数部分和小数部分: math.modf()
阅读全文
posted @
2021-04-28 17:26
轩辕吊雷
阅读(175)
评论(0)
推荐(0)
re.sarch(pattern, str).span()
摘要:返回匹配到的字符的起始索引位置和结束索引位置 str = '445076.83' span = re.search("\.", str).span() print(span)
阅读全文
posted @
2021-04-14 14:12
轩辕吊雷
阅读(113)
评论(0)
推荐(0)
公告