- 博客(1)
- 收藏
- 关注
原创 Python re 模块使用
正则表达式用法: >>> s = 'my name is jammgit' #不像C++,没有所谓的换行符 >>> m = re.compile('^(\w*)\s(\w*)\s(\w*)\s(\w*)$') #要寻找字符串的抽象表达 >>> m.search('\4 \3 \2 \1' , s) 'jammgit is name my' >>>i
2015-04-16 13:25:58
199
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人