程序人生

Python中re模块常用函数

re.match re.match 尝试从字符串的开始匹配一个模式,如:下面的例子匹配第一个单词。 import re text = JGood is a handsom...