04 2021 档案

摘要:向上取整: math.ceil() 向下取整: int() 四舍五入: round() 分别取整数部分和小数部分: math.modf() 阅读全文
posted @ 2021-04-28 17:26 轩辕吊雷 阅读(166) 评论(0) 推荐(0) 编辑
摘要:返回匹配到的字符的起始索引位置和结束索引位置 str = '445076.83' span = re.search("\.", str).span() print(span) 阅读全文
posted @ 2021-04-14 14:12 轩辕吊雷 阅读(105) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示