python metaclass
摘要:
有一篇很好的讲解http://blog.jobbole.com/21351/ 我所写的方便自己学习的例子。#coding:utf8class Application(object): def __init__(self): super(Application, self).__init__() self.items = {'key1':'value1','key3':'value3','key2':'value2'} def init_model(self,model_cls): for attr 阅读全文
posted @ 2013-06-21 10:29 tiger4py 阅读(180) 评论(0) 推荐(0)
浙公网安备 33010602011771号