Decorator 是python 的語法糖(syntactic sugar),會為函式加上 ... 在這裡是為了避免使用者出現@game_started(True) 這樣的用法,因為如此一來func 就 ...
確定! 回上一頁