会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Pio-GD
Talk is cheap, show me the code.
博客园
首页
新随笔
联系
管理
订阅
2021年1月1日
使用正则表达式
摘要: 使用方法举例: 1 import re 2 3 character = re.compile('[^\w\u4e00-\u9fa5]+') # \u4e00-\u9fa5是中文的Uincode码 4 test_str = 'as()12c!@#2/1$4\大3 %[]^sa{}23da 大' 5 m
阅读全文
posted @ 2021-01-01 16:55 Pio-GD
阅读(88)
评论(0)
推荐(0)
公告