Python查找字符串中的数字数字 Python匹配字符串中的数字: import re s='zs10nj23kl' f1=re.findall('(d+)',s) print(f1) 输出为: ['10', '23']