Python Static and Class Methods

It is possible to define two kinds of methos within a class that can be called without an instance; static methods work roughly like simple instance-less functions inside a class, and class method are passed a class instead of an instance.

posted @ 2015-10-28 15:25  hotbaby  阅读(209)  评论(0编辑  收藏  举报