从键盘读取一个字符串把其中所有的数字组成一个新的字符串,并打印。
代码如下,如有帮助请点击采纳谢谢
s = input() r = '' for t in s: if t.isdigit(): r += t print(r)