Click to Visit Homepage : zzyzz.top


摘要: 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 阅读全文
posted @ 2017-09-18 14:43 zzYzz 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1 classmethod and staticmethod 2 classmethod 的是一个参数是类对象 cls (本类,或者子类), 而不是实例对象 instance (普通方法). classmethod 即可以通过'类'调用 - cls.classfunc(), 3 也可以同通过实例调用('The instance is ignored except for i... 阅读全文
posted @ 2017-09-18 14:38 zzYzz 阅读(243) 评论(0) 推荐(0) 编辑


Click to Visit Homepage : zzyzz.top