#栈算法 s = input().replace('[','(').replace(']',')').replace('{','(').replace('}',')') def groupsum(sx): stack=[] onhold=0 temp='' for i in range(len(sx)+1): if i==len(sx): x='_' else: x=sx[i] if x in ['+','-','*','/','_']: #stack更新条件 if len(temp)>0: if onhold==1: stack[-1]=stack[-1]*int(temp) onho...