题解 | #四则运算#投机取巧的解题方法
四则运算
https://www.nowcoder.com/practice/9999764a61484d819056f807d2a91f1e
str = input() str1="" for c in str: if(c=='['): c ='(' if(c=='{'): c ='(' if(c==']'): c =')' if(c=='}'): c =')' str1+=c answer = eval(str1) print(int(answer))