def my_decorator(func): print('裝飾器加點料') return func def my_func(): print('被裝飾函式執行') my_func = my_decorator(my_func) my_func().
確定! 回上一頁