#把字符串a='3[ab]acc',解压成‘abababacc’
a='3[ab]acc'
b = a.split(']')[0]
c = b.split('[')
d=int(c[0])*c[1]
e = d+a.a.split(']')[1]
print(e)
#把字符串a='3[ab]acc',解压成‘abababacc’
a='3[ab]acc'
b = a.split(']')[0]
c = b.split('[')
d=int(c[0])*c[1]
e = d+a.a.split(']')[1]
print(e)