摘要: C++的静态方法是用static关键字,python j是没用static的。python中实现静态方法和类方法都是依赖于python的修饰器来实现的。classMyClass:defmethod(self):print("method")@staticmethoddefstaticMethod()... 阅读全文
posted @ 2014-05-26 10:12 xyecho 阅读(424) 评论(0) 推荐(0) 编辑