题解 | #四则运算#
四则运算
https://www.nowcoder.com/practice/9999764a61484d819056f807d2a91f1e
import re inData = input() inData = re.sub("[\{\[]", "(", inData) inData = re.sub("[\}\]]", ")", inData) out = eval(inData) # don't know why must be int !!! print(int(out))