题解 | #表示数字#
表示数字
https://www.nowcoder.com/practice/637062df51674de8ba464e792d1a0ac6
ss=input() a='*'+ss[0] if ord('0')<=ord(ss[0])<=ord('9') else ss[0] for s in ss[1:]: if ord('0')<=ord(s)<=ord('9'): if ord('0')<=ord(a[-1])<=ord('9'): a+=s else: a+='*'+s else: if ord('0')<=ord(a[-1])<=ord('9'): a+='*'+s else: a+=s if ord('0')<=ord(a[-1])<=ord('9'): a+='*' print(a)