Ray's playground

 

02 2009 档案

Priority
摘要:Top C++, WPF, WCF, WF, ASP.net, Ajax Python Medium Design Pattern Algorithm SQL Server Low Java 阅读全文

posted @ 2009-02-28 09:45 Ray Z

Using a C++-like iostream Syntax(Python cookbook 2-13)
摘要:Problem You like the C++ approach to I/O, based on ostreams and manipulators (special objects that cause special effects on a stream when inserted in it) and want to use it in your Python programs. So... 阅读全文

posted @ 2009-02-27 23:20 Ray Z 阅读(297) 评论(0) 推荐(0)

Computing the Relative Path from One Directory to Another(Python cookbook 2-22)
摘要:Problem You need to know the relative path from one directory to anotherfor example, to create a symbolic link or a relative reference in a URL. Solution Precondition itertools.izip(*iterables) Make ... 阅读全文

posted @ 2009-02-24 22:27 Ray Z 阅读(337) 评论(0) 推荐(0)

Swapping One File Extension for Another Throughout a Directory Tree
摘要:Problem You need to rename files throughout a subtree of directories, specifically changing the names of all files with a given extension so that they have a different extension instead. Solution Oper... 阅读全文

posted @ 2009-02-21 15:30 Ray Z 阅读(1251) 评论(0) 推荐(0)

Builder
摘要:Definition Separates the construction of a complex object from its representation so that the same construction process can create different representations. Class Diagram Participants Builder... 阅读全文

posted @ 2009-02-21 15:08 Ray Z 阅读(340) 评论(0) 推荐(0)

Walking Directory Trees(Python Cookbook 2-16)
摘要:Precondition 1. os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]]) Generate the file names in a directory tree by walking the tree either top-down or bottom-up. For each directory in t... 阅读全文

posted @ 2009-02-20 21:57 Ray Z 阅读(366) 评论(0) 推荐(0)

导航