题解 | #提取数字电话#
提取数字电话
https://www.nowcoder.com/practice/6e25b95632e6433db4b5053f91138cb5
import re string=input() string=re.sub(r'[^0-9]','',string) print(string)
关于python的re.sub函数相关的用法:https://blog.csdn.net/weixin_44799217/article/details/115100715
提取数字电话
https://www.nowcoder.com/practice/6e25b95632e6433db4b5053f91138cb5
import re string=input() string=re.sub(r'[^0-9]','',string) print(string)
关于python的re.sub函数相关的用法:https://blog.csdn.net/weixin_44799217/article/details/115100715
相关推荐
查看3道真题和解析