题解 | #表示数字#
表示数字
http://www.nowcoder.com/practice/637062df51674de8ba464e792d1a0ac6
while True:
try:
a = input()
b = a
j = -1
for i in range(0,len(a)-1):
if not a[i].isnumeric() and a[i+1].isnumeric():
j += 1
b = b[:i+j+1]+'*'+b[i+j+1:]
if a[i].isnumeric() and not a[i+1].isnumeric():
j += 1
b = b[:i+j+1]+'*'+b[i+j+1:]
if b[0].isnumeric():
b = '*'+b
if b[-1].isnumeric():
b = b+'*'
print(b)
except:
break