python之裝飾器講解***

# -*- coding: utf-8 -*- """如果python中的一個類定義了 __call__ 方法,那麼這個類它的實例就可以作爲函數調用,也就是實現了 () 運算符,即可調用對象協議""" print("========================__call__-test================================") class myTest: de
相關文章
相關標籤/搜索