python 提取字符串中的数字

利用re模块提取字符串中的数字
[0-9]* 是数字匹配的正则表达式

 findlist = re.findall('(\w*[0-9]+)\w*', emp_length_val)

你可能感兴趣的:(python)