题解 | #表示数字#
表示数字
https://www.nowcoder.com/practice/637062df51674de8ba464e792d1a0ac6
string = list(input()) i = len(string)-1 while i >= 0: if string[i].isdigit(): j = i while string[j].isdigit(): j -= 1 # print(string[j]) else: string.insert(i+1, '*') string.insert(j+1, '*') i = j i -= 1 print(''.join(string))