代码: import re #!/usr/bin/python # -*- coding: UTF-8 -*- pattern = re.compile(r'\d+') # 查找数字 result1=pattern.