浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

http://pleac.sourceforge.net/pleac_python/directories.html

 

PLEAC - Programming Language Examples Alike Cookbook

SourceForge Logo

Summary

Following the great Perl Cookbook (by Tom Christiansen & Nathan Torkington, published by O'Reilly; you can freely browse an excerpt of the book here) which presents a suite of common programming problems solved in the Perl language, this project aims to implement the solutions in other programming languages.

If successful, this project may become a primary resource for quick, handy and free reference to solve most common programming problems using various programming languages, and for comparison on ease-of-use and power/efficiency of these languages.

The material, considered as some Documentation, is wholly released under the Gnu Free Documentation License, except the Perl part, which is copyrighted by O'Reilly & Associates yetfreely available.

Please subscribe to the discussion mailing-list if interested in the project.

The FAQ is here. You may also see who talked about Pleac.

Support

 

http://pleac.sourceforge.net/

前面的Python os.listdir 可以列出 dir 里面的所有文件和目录,但不包括子目录中的内容。os.walk 可以遍历下面的所有目录,包括子目录。

os.listdir只返回一层的文件夹和文件名

http://pleac.sourceforge.net/pleac_python/index.html good

posted on 2010-10-11 19:11  lexus  阅读(301)  评论(0)    收藏  举报