Differences between revisions 6 and 7
Revision 6 as of 2008-04-03 14:00:15
Size: 2056
Editor: XiaoQi
Comment: 过得真快,一下子就将近一年了。有点怀念自己校对 dip 的那两个月的时光……
Revision 7 as of 2009-12-25 07:09:17
Size: 2059
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
[[TableOfContents]] <<TableOfContents>>
Line 5: Line 5:
[:../2007-07-07] [[../2007-07-07]]
Line 7: Line 7:
 1. `Para 1`:除了普通的类方法,'''还有一些对于 Python 类可以定义的专用方法'''。[[BR]]
 {1} 除了普通的类方法,'''对于 Python 类还有一些可以定义的专用方法'''。[[BR]]
 1. `Para 1`:除了普通的类方法,'''还有一些对于 Python 类可以定义的专用方法'''。<<BR>>
 {1} 除了普通的类方法,'''对于 Python 类还有一些可以定义的专用方法'''。<<BR>>
Line 11: Line 11:
[:../2007-07-11] [[../2007-07-11]]
Line 13: Line 13:
 1. `例6.2, (1)`:''termios is a '''UNIX-specific''' module...''[[BR]]
 termios 是一个 '''UNIX 特定模块'''[[BR]]
 {1} termios 是一个'''特定的 UNIX 模块'''[[BR]]
 (./) termios 是 '''UNIX 独有的一个模块'''[[BR]]
 1. `例6.2, (1)`:''termios is a '''UNIX-specific''' module...''<<BR>>
 termios 是一个 '''UNIX 特定模块'''<<BR>>
 {1} termios 是一个'''特定的 UNIX 模块'''<<BR>>
 (./) termios 是 '''UNIX 独有的一个模块'''<<BR>>
Line 22: Line 22:
 1. `例6.14上`:''The next example shows how to use the `__module__` class attribute with the sys.modules dictionary to get a reference to the module in which a class is defined.''[[BR]]
 下面的例子介绍 sys.modules dictionary 的 `__module__` 属性,可以作为理解已定义类中 `__module__` 属性的参考。[[BR]]
 (./) 下面的例子将展示通过结合使用 `__module__` 类属性和 sys.modules dictionary 来获取已知类所在的模块。[[BR]]
 1. `例6.14上`:''The next example shows how to use the `__module__` class attribute with the sys.modules dictionary to get a reference to the module in which a class is defined.''<<BR>>
 下面的例子介绍 sys.modules dictionary 的 `__module__` 属性,可以作为理解已定义类中 `__module__` 属性的参考。<<BR>>
 (./) 下面的例子将展示通过结合使用 `__module__` 类属性和 sys.modules dictionary 来获取已知类所在的模块。<<BR>>
Line 29: Line 29:
[:../2007-07-14] [[../2007-07-14]]
Line 31: Line 31:
 1. 当使用松散正则表达式时,最重要的一件事情就是:必须传递'''另外一个参数''' re.VERBOSE……[[BR]]  1. 当使用松散正则表达式时,最重要的一件事情就是:必须传递'''另外一个参数''' re.VERBOSE……<<BR>>

8-4<Xr5-8> Review: Chapter 5-8

5. 对象和面向对象

../2007-07-07

5.6 专用类方法

  1. Para 1:除了普通的类方法,还有一些对于 Python 类可以定义的专用方法
    {1} 除了普通的类方法,对于 Python 类还有一些可以定义的专用方法
    (./) 除了普通的类方法,Python 类还可以定义专用方法

6. 异常和文件处理

../2007-07-11

6.1 异常处理

  1. 例6.2, (1)termios is a UNIX-specific module...
    termios 是一个 UNIX 特定模块
    {1} termios 是一个特定的 UNIX 模块
    (./) termios 是 UNIX 独有的一个模块
    (!) 关于 msvcrt, easydialogs 作类似修改,不再一一列出。

6.2 与文件对象共事

6.2.1 读取文件

  1. 例6.4, (2):删去了这里的译注。

6.5 使用 sys.modules

  1. 例6.14上The next example shows how to use the __module__ class attribute with the sys.modules dictionary to get a reference to the module in which a class is defined.
    下面的例子介绍 sys.modules dictionary 的 __module__ 属性,可以作为理解已定义类中 __module__ 属性的参考。
    (./) 下面的例子将展示通过结合使用 __module__ 类属性和 sys.modules dictionary 来获取已知类所在的模块。
    (!) 原译弄得我一头雾水,我还译为是原版错了呢

6.5 与 Directory 共事

  1. 本节标题:我仔细看了一下这一章, Directory 没有用作语言关键字。改为与目录共事

7. 正则表达式

../2007-07-14

7.5 松散正则表达式

  1. 当使用松散正则表达式时,最重要的一件事情就是:必须传递另外一个参数 re.VERBOSE……
    (./) 当使用松散正则表达式时,最重要的一件事情就是:必须传递一个额外的参数 re.VERBOSE

8. HTML 处理

  • pass

DiveIntoPythonZh/2007-08-04 (last edited 2009-12-25 07:09:17 by localhost)