📜  python staticmethod 属性 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:43.541000             🧑  作者: Mango

代码示例1
class staticproperty(staticmethod):
    def __get__(self, *args):
        return self.__func__()
      
# use instead of @property decorator in your class