python.re模块
生活随笔
收集整理的這篇文章主要介紹了
python.re模块
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
.re:(網上摘)
import re pattern = re.compile("forum\/(\d*)\/topic\/(\d*)") res = pattern.search('forum/135/topic/794150').groups() print res[0],res[1]?
轉載于:https://www.cnblogs.com/yuchenkit/p/5323960.html
總結
以上是生活随笔為你收集整理的python.re模块的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tortoisesvn › prefer
- 下一篇: websocket python爬虫_p