Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2007-02-20 07:11:54
Size: 1496
Editor: ZoomQuiet
Comment:
Revision 4 as of 2007-02-20 09:57:23
Size: 1755
Editor: ZoomQuiet
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
-4 Pday 可用的首个脚本 -4 PyDay 可用的首个脚本
Line 28: Line 28:
现在首先的问题是**如何读取指定目录/分区中的文件列表信息?**

行者仅仅给了一点批示--**文件是系统的事儿**
Line 32: Line 35:

系统 -- 操作系统 -- operating system -- `os模块`_

呜乎矣哉! 小白搜索了一大圈才弄明白,什么叫**系统**, 而且找到了相应的**模块**
Line 39: Line 46:
小结 -4 PyDay小结
Line 45: Line 52:


.. os模块:http://www.woodpecker.org.cn:9081/doc/abyteofpython_cn/chinese/ch14s03.html
Line 53: Line 63:
Line 56: Line 65:
.. _Docutils-Users mailing list:
   http://lists.sourceforge.net/lists/listinfo/docutils-users
.. _Docutils project web site: http://docutils.sourceforge.net/
Rendering of reStructured text is not possible, please install Docutils.
:status: 草稿;ZoomQuiet; 90%

.. contents::
  :depth: 3


-4 PyDay 可用的首个脚本
===============================
**寻找吧!不要先想着创造--Python 是自足的**


现在的需求
--------------------
嗯嗯嗯! 小白根据曾经下载过的几个不好用的软件, 给自个儿的软件起个名字: **CDCategory** -- 光盘类库,简写 CDC

再确认当前的需求::
  1. 可以将光盘内容索引储存为硬盘上的文本文件
  2. 可以根据储存到硬盘上的光盘信息进行搜索

第一需求是将光盘信息读取为文本文件,因为小白痛恨DB;-)


文件是系统的事儿
----------------------------------------
现在首先的问题是**如何读取指定目录/分区中的文件列表信息?**

行者仅仅给了一点批示--**文件是系统的事儿**


listdir()
``````````````````````````````````````````

系统 -- 操作系统 -- operating system -- `os模块`_

呜乎矣哉! 小白搜索了一大圈才弄明白,什么叫**系统**, 而且找到了相应的**模块**


walk !
``````````````````````````````````````````



-4 PyDay小结
===============================


练习
--------------------


.. os模块:http://www.woodpecker.org.cn:9081/doc/abyteofpython_cn/chinese/ch14s03.html


附件 |contribute_docs|

.. |contribute_docs| image:: 1.0/RoughDocs/contribute_docs.jpg

脚注 [#]_

.. [#] If that relative link doesn't work, try the master document:
   http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html.




.. macro:: [[PageComment2(nosmiley=1, notify=1)]]


.. macro:: -- ZoomQuiet [[[DateTime(2007-02-20T07:11:54Z)]]]

ObpLovelyPython/PyDay-4 (last edited 2009-12-25 07:14:48 by localhost)