# part1 # 加法运算 def add(n1, n2): return n1 + n2 def low(n1, n2): return n1 - n2 # 四则运算 def computed(n1, n2, func): # if cmd == 'add': # return add(n1, n2) # elif cmd == 'low': # return n1 - n2 return func(n1, n2) r1 = computed(10, 20, add) print(r1) r…