exercis:
Solution:
def basic_op(operator, value1, value2): return eval(str(value1) + operator + str(value2))#math模块eval()执行字符串表达式