开发者

What is the difference between a static method and class method in Python?

开发者_如何转开发 Merged with Difference between @staticmethod and @classmethod.

Python has two decorators @staticmethod and @classmethod. Could someone one explain the difference between the two or point me to a source where it is documented? When should the staticmethod decorator be used over the classmethod decorator?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜