Differences between revisions 1 and 2
Revision 1 as of 2007-08-14 11:50:30
Size: 85
Editor: XiaoQi
Comment:
Revision 2 as of 2007-08-14 11:53:42
Size: 481
Editor: XiaoQi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
以下是 Dip 原版的勘误。 以下是 Dip 原版的勘误。勘误表中指出的错误在 svn 版中均已修正。
= 17. 动态函数 =
 1. `例17.7, Line 4`:这行代码末尾多了一个`/`。
{{{def plural(noun):
    if match_sxz(noun):
        return apply_sxz(noun)
    if match_h(noun):/
        return apply_h(noun)
    if match_y(noun):
        return apply_y(noun)
    if match_default(noun):
        return apply_default(noun)
}}}

Include(../xbar) 以下是 Dip 原版的勘误。勘误表中指出的错误在 svn 版中均已修正。

17. 动态函数

  1. 例17.7, Line 4:这行代码末尾多了一个/

{{{def plural(noun):

  • if match_sxz(noun):
    • return apply_sxz(noun)
    if match_h(noun):/
    • return apply_h(noun)
    if match_y(noun):
    • return apply_y(noun)
    if match_default(noun):
    • return apply_default(noun)

}}}

DiveIntoPythonZh/xe (last edited 2009-12-25 07:17:15 by localhost)