## re.findall数字(正则表达式) import re s=‘python n\r\t1111java&_678php’ r=re. findall(’\d’,s) print® 输出为: [‘1’,‘1’,‘1’,‘1’,‘6’,‘7’,‘8’]