题解 | python Eval()函数运用#四则运算#
四则运算
http://www.nowcoder.com/practice/9999764a61484d819056f807d2a91f1e
while True:
try:
s= input()
s=s.replace('{', '(').replace('}', ')').replace('[', '(').replace(']',')')
print(int(eval(s)))
except:
break