会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ylinn
博客园
首页
新随笔
联系
订阅
管理
2020年11月2日
re正则表达式
摘要: 匹配模式 从字符串中全部查找内容,返回一个列表 import re s = "hello_宇霖_hello" print(re.findall("hello", s)) \w 查找字母(包含中文)或数字或下划线 import re s = "hello_宇霖_hello" print(re.find
阅读全文
posted @ 2020-11-02 08:50 Ylinn
阅读(194)
评论(0)
推荐(0)
公告