Ray's playground

 
上一页 1 ··· 52 53 54 55 56

2009年2月21日

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 阅读(1240) 评论(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 阅读(316) 评论(0) 推荐(0) 编辑

2009年2月20日

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 阅读(358) 评论(0) 推荐(0) 编辑

上一页 1 ··· 52 53 54 55 56

导航