Ray's playground

 
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 56 下一页

2010年9月7日

Common Python 3 Libraries(Chapter 12 of Python 3 Object Oriented Programming)

摘要: In this chapter we'll be covering: Database libraries and object-relational managers Point-and-click graphical applications CherryPy for web applications Working with XML 阅读全文

posted @ 2010-09-07 20:47 Ray Z 阅读(231) 评论(0) 推荐(0) 编辑

2010年9月6日

Testing Object-oriented Programs(Chapter 11 of Python 3 Object Oriented Programming)

摘要: [代码] 阅读全文

posted @ 2010-09-06 21:19 Ray Z 阅读(143) 评论(0) 推荐(0) 编辑

Files and Strings(Chapter 10 of Python 3 Object Oriented Programming)

摘要: stringCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1>>>template="Hello{},youarecurrently{}."2>>>print(template.format('Ray','writ... 阅读全文

posted @ 2010-09-06 12:46 Ray Z 阅读(207) 评论(0) 推荐(0) 编辑

2010年9月5日

Python Design Patterns II(Chapter 9 of Python 3 Object Oriented Programming)

摘要: flyweightCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>importweakref>>>classCarModel:_models=weakref.WeakValueDictionary()def__... 阅读全文

posted @ 2010-09-05 09:59 Ray Z 阅读(254) 评论(0) 推荐(0) 编辑

2010年9月4日

Algorithm Analysis(Chapter 2 of The Algorithm Design Manual)

摘要: The formal definitions associated with the Big Oh notation are as follows:  • f(n) = O(g(n)) means c · g(n) is an upper bound on f(n). Thus there existssome constant c such that f(n) is alw... 阅读全文

posted @ 2010-09-04 20:51 Ray Z 阅读(253) 评论(0) 推荐(0) 编辑

Python Design Patterns I(Chapter 8 of Python 3 Object Oriented Programming)

摘要: decoratorCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1>>>importtime2>>>deflog_calls(func):3defwrapper(*args,**kwargs):4now=time.... 阅读全文

posted @ 2010-09-04 11:14 Ray Z 阅读(356) 评论(0) 推荐(0) 编辑

2010年9月3日

Python Object-oriented Shortcuts(Chapter 7 of Python 3 Object Oriented Programming)

摘要: Len  The simplest example is the len() function. This function counts the number of items in some kind of container object such as a dictionary or list.  Reversed  The reversed() function takes any se... 阅读全文

posted @ 2010-09-03 20:44 Ray Z 阅读(292) 评论(0) 推荐(0) 编辑

2010年9月2日

When to Use Object-oriented Programming(Chapter 5 of Python 3 Object Oriented Programming)

摘要: codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1classSilly:23@property4defsilly(self):5"Thisisasillyproperty"6print("Youaregettingsilly")7returns... 阅读全文

posted @ 2010-09-02 20:52 Ray Z 阅读(138) 评论(0) 推荐(0) 编辑

2010年9月1日

When Objects are Alike(Chapter 3 of Python 3 Object Oriented Programming)

摘要: codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1classBaseClass:2num_base_calls=034defcall_me(self):5print("CallingmethodonBaseClass")6self.num_ba... 阅读全文

posted @ 2010-09-01 20:54 Ray Z 阅读(141) 评论(0) 推荐(0) 编辑

2010年8月31日

Objects in Python(Chapter 2 of Python 3 Object Oriented Programming)

摘要: notebookCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1importdatetime23last_id=045classNote:67def__init__(self,memo,tags=''):8self.memo=memo9self.ta... 阅读全文

posted @ 2010-08-31 21:41 Ray Z 阅读(265) 评论(0) 推荐(0) 编辑

上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 56 下一页

导航