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