python learning base 不错

PLEAC项目旨在通过多种编程语言实现类似Perl Cookbook中的编程问题解决方案,为开发者提供不同语言解决常见问题的手册。该项目涵盖多种语言的示例,有助于比较不同语言的易用性和效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值