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