会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
liown
博客园
首页
新随笔
联系
管理
订阅
01 2020 档案
从字符串中找出最大的数字串,字符串中可以带小数点。--python实现
摘要:1 import re 2 input_str = "abcd123.4567.891.123yfdsa4567.54" 3 # 使用正则找出所有数字及下标 4 pattern = re.compile(r"\d+") 5 s = pattern.finditer(input_str) 6 tmp
阅读全文
posted @
2020-01-03 14:21
liown
阅读(1223)
评论(0)
推荐(0)
公告