2010年8月24日
摘要: Attribute Description__class__ A reference to the class from which the object was instantiated.__dict__ A dictionary that corresponds to the object’s namespace. Each keyvalue pair represents an ... 阅读全文
posted @ 2010-08-24 14:31 菜刀大侠 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Attribute Description__bases__ A tuple that contains base classes from which the class directly inherits.If the class does not inherit from other classes, the tuple is empty.[Note: We discuss base cla... 阅读全文
posted @ 2010-08-24 14:20 菜刀大侠 阅读(338) 评论(0) 推荐(0) 编辑
摘要: <<DEITEL - Python How to Program 2002>>7.2 Implementing a Time Abstract Data Type with a ClassClasses enable programmers to model objects that have data (represented as attributes) and beh... 阅读全文
posted @ 2010-08-24 02:02 菜刀大侠 阅读(278) 评论(0) 推荐(0) 编辑