python类方法和静态方法

python没有和C++中static关键字,它的静态方法是怎样的呢?还有其它语言中少有的类方法又是神马? python中实现静态方法和类方法都是依赖于python的修饰器来实现的。   class MyClass:        def  method(self):             print("method")        @staticmethod      def  static
相关文章
相关标签/搜索