标签:
# -*- 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.
‘‘‘
标签:
原文地址:http://www.cnblogs.com/dengyg200891/p/4945744.html