用Python寫一個?
我課程中的部分代碼(除沒寫):
def f_add(a,b): return a+bdef f_mul(a,b): return a*bdef f_sub(a,b): return a-b def g1(f,a,b): return f(a,b)a,b,c,d = 1,2,3,4print g1(f_sub, g1(f_mul, g1(f_add,a,b), c), d), g1(f_mul, g1(f_add,a,b), g1(f_sub,c, d))
對Python感興趣可以到這里了解一下:study.163.com/course/courseMain.htm?courseId=1000035