摘要: It is a way to run extra processing steps at function and class definition time with explicit syntax. It comes in two flavors:Function decorators—the ... 阅读全文
posted @ 2015-10-28 15:53 hotbaby 阅读(173) 评论(0) 推荐(0) 编辑
摘要: It is possible to define two kinds of methos within a class that can be called without an instance; static methods work roughly like simple instance-l... 阅读全文
posted @ 2015-10-28 15:25 hotbaby 阅读(212) 评论(0) 推荐(0) 编辑
摘要: …… 阅读全文
posted @ 2015-10-28 14:44 hotbaby 阅读(110) 评论(0) 推荐(0) 编辑
摘要: MRO, Method Resolution Order The MRO algorithm List the classes that an instance inherits from using the classic class’s DFLR(Depth First, Left to Right) lookup rule, and include a class multipl... 阅读全文
posted @ 2015-10-28 14:18 hotbaby 阅读(350) 评论(0) 推荐(0) 编辑