import math ops = {'+':1, '-':1,'*':2,'/':2 } def cal(a, b, op): # 计算两个数的结果 if op == "+": return a + b elif op == "-": return a - b elif op == "*": return a * b elif op == "/": return math.floor(a / b) def ha...