题意为提取字符串中数字,将其合为一个新的字符串,最后转化为整数再输出
收起
import re data = input() print(re.sub("\D", "", data))
望采纳,谢谢
报告相同问题?