staticmethod()
用途:
when you need a utility function that doesn't access any properties of a class but makes sense that it belongs to the class, we use static functions.
翻译:
为了好看
用途:
when you need a utility function that doesn't access any properties of a class but makes sense that it belongs to the class, we use static functions.
翻译:
为了好看