计算加减乘除混合运算python实现_python,实现计算器程序,加减乘除混合运算加括号,完善实现...
importre#detect error inputs = input("Expression:")s= re.sub('\s',"",s)if re.findall('[^0-9\+\-\*/\)\(]',s):print("Error input,Stop!")exit()defjudge1(sign):if sign == '*':obj= re.compile('\*')elif sig...