Python 的裝飾器是高階函數的語法糖。 一個函數decorators用於函數定義,它位於在函數定義之前的一行。例如: @myDecorator def aFunction(): print "inside aFunction".
確定! 回上一頁