摘要: re.match re.match 尝试从字符串的开始匹配一个模式,如:下面的例子匹配第一个单词。import retext = "JGood is a handsome boy, he is cool, clever, and soon..."m = re.match(r"(\w+)\s", t... 阅读全文
posted @ 2014-12-25 07:53 pythonilove 阅读(167) 评论(2) 推荐(0)