会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wellons
博客园
首页
新随笔
联系
管理
订阅
2021年2月24日
python 正则匹配一串字符串的负数和正数,合并两个列表为字典
摘要: 1、python 正则匹配一串字符串内容中的正数或负数 import re pattern = re.compile(r'-\d+|\d+') # 用于匹配正值或负值 values = pattern.findall('\r\nNUESTATS:CELL,3684,164,1,-936,-109,-
阅读全文
posted @ 2021-02-24 14:35 wellons
阅读(1080)
评论(0)
推荐(0)
编辑
公告