题解 | #截断电话号码#
截断电话号码
https://www.nowcoder.com/practice/078d1abcb55648f687a78d87e4b3cb69
import re a=input() print(re.match(r"[0-9-]+",a).group())
截断电话号码
https://www.nowcoder.com/practice/078d1abcb55648f687a78d87e4b3cb69
import re a=input() print(re.match(r"[0-9-]+",a).group())
相关推荐