题解 | #表示数字#
表示数字
https://www.nowcoder.com/practice/637062df51674de8ba464e792d1a0ac6
ent = input()
out = ' '
for i in range(len(ent)):
    if not ent[i].isdecimal():
        if not out[-1].isdecimal():
            out += ent[i]
        else:
            out += '*'+ ent[i]
    else:
        if not out[-1].isdecimal():
            out += '*'+ ent[i]
        else:
            out += ent[i]
if ent[-1].isdecimal():
    out += '*'
print(out[1:])

 美的集团公司福利 727人发布
美的集团公司福利 727人发布
