摘要:
The Zen of Python -- by Tim Peters Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than 阅读全文
摘要:
1 classmethod and staticmethod 2 classmethod 的是一个参数是类对象 cls (本类,或者子类), 而不是实例对象 instance (普通方法). classmethod 即可以通过'类'调用 - cls.classfunc(), 3 也可以同通过实例调用('The instance is ignored except for i... 阅读全文