Python模块之re 正则表达式

作用:

  正则表达式

必要操作:

>>> import re

帮助查看:

>>> help(re)
或 单独查看某个方法(函数)
>>> help(re.sub)

方法(函数):

>>> re.match('[0-9]+.[0-9]+', compute_capability)

  

原文地址:https://www.cnblogs.com/wutou/p/15651791.html