思路如下:
代码如下:
s = input() # 2358923*
q = []
res = ''
def change(x): #
return chr(ord('a') + x - 1)
for ch in s:
if ch == '*':
while len(q) > 2:
c = q.pop(0)
res += change(c)
x = q.pop(0)
y = q.pop(0)
res += change(x * 10 + y)
else:
q.append(int(ch))
while len(q) > 0:
c = q.pop(0)
res += change(c)
print(res)