题解 | #提取电话号码#
提取电话号码
http://www.nowcoder.com/practice/c22f5345c7174302a1f5e7f33db45714
p = input().split("#")[0].split(" ")[0]
print(p)
for i in p.split("-"):
print(i, end="")
print()
提取电话号码
http://www.nowcoder.com/practice/c22f5345c7174302a1f5e7f33db45714
p = input().split("#")[0].split(" ")[0]
print(p)
for i in p.split("-"):
print(i, end="")
print()
相关推荐