RE模块疑问
待处理:
>>> re.findall(r'[-+]*\d+(?:\.\d+)?','-++++---+123.012') ['-++++---+123.012'] >>> re.findall(r'[-+]*\d+(\.\d+)?','-++++---+123.012') ['.012']
待处理:
>>> re.findall(r'[-+]*\d+(?:\.\d+)?','-++++---+123.012') ['-++++---+123.012'] >>> re.findall(r'[-+]*\d+(\.\d+)?','-++++---+123.012') ['.012']