#callback
def test(arg):
#print(arg)
arg("hello") # function call
#arg(hello) to handle(data)
#定義一個回呼函式
def handle(data):
print(data)
test(handle)
def add(n1, n2, cb):
cb(n1+n2)
def handle1(result):
print("結果是: ", result )
def handle2(result):
print("English Result of Add is: ", result )
add(3, 4, handle1)
add(5, 6, handle2)