# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#python之函数用法classmethod(),了解即可
#classmethod()
#说明:类方法,暂时知道是类方法即可,不做深入研究
‘‘‘
class classmethod(object)
| classmethod(function) -> method
|
| Convert a function to be a class method.
|
| A class method receives the class as implicit first argument,
| just like an instance method receives the instance.
‘‘‘
时间: 2024-08-05 07:05:02