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.

原文地址:https://www.cnblogs.com/hotbaby/p/4917474.html