classmethod&staticmethod, shallow copy

classmethod: 函數對本類進行處理
staticmethod: 函數不對本類裏面的參數作處理python

https://www.programiz.com/python-programming/methods/built-in/staticmethod
https://www.programiz.com/python-programming/methods/built-in/classmethod

淺複製: 對於不可變對象會開闢新空間,可變對象直接引用函數

相關文章
相關標籤/搜索