match()函数是在string的开始位置匹配,如果不匹配,则返回Nonesearch()会扫描整个string查找匹配;也就是说match()只有在0位置匹配成功的话才有返回,例如:print(re.match(‘super’, ‘superstition’).span()) 会返回(0, 5....
分类:
编程语言 时间:
2014-08-12 16:25:34
阅读次数:
210
My testing environment:Windows Server 2012 R2 Essentials:With AD and standalone DC in one single box.Ubuntu:ubuntu-12.04.1-desktop-amd64Basically, I w...