Differences between revisions 3 and 4
Revision 3 as of 2006-03-20 17:15:24
Size: 711
Editor: wolfg
Comment:
Revision 4 as of 2006-03-20 17:22:43
Size: 2581
Editor: wolfg
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
'''既然你已对Python 有了一定的了解,那么接下来将回顾这个程序并从其它被开发之前入手。''' '''既然你已对Python 有了一定的了解,那么接下来将回顾这个程序并从其代码被开发之前入手。'''

'''2nd paragraph 1st sentence:'''

''In the next few chapters, you're going to write, debug, and optimize a set of utility functions to convert to and from Roman numerals. ''

''在接下来的几章中,你将会编写,纠错以及优化一系列使用函数来进行罗马数字和阿拉伯数字之间的转换。''

'''在接下来的几章中,你将编写、调试和优化一系列工具函数来进行罗马数字和阿拉伯数字之间的转换。'''

roman.py 功能需求 中所有的'''valid'''翻译成'''“有效”'''、 '''invalid'''翻译成'''“无效”'''较翻译成''“合法”''、''“非法”''合适。

'''需求第6点:'''

''6. If you take a number, convert it to Roman numerals, then convert that back to a number, you should end up with the number you started with. So fromRoman(toRoman(n)) == n for all n in 1..3999. ''

''将一个数转换为罗马数字表示,再转换回阿拉报数字表示后应该和最初的数相同。因此,fromRoman(toRoman(n)) == n 对于 1..3999 之间所有 n 都适用。''

'''将一个数转换为罗马数字表示,再转换回阿拉伯数字表示后应该和最初的数相同。因此,fromRoman(toRoman(n)) == n 对于 1..3999 之间所有 n 都适用'''。

'''需求第7点:'''

''7. toRoman should always return a Roman numeral using uppercase letters.''

''toRoman 返回的罗马数字应该适用大写字母。''

'''toRoman 返回的罗马数字应该使用大写字母。 '''

last sentence between parentheses
short answer: haphazardly and inconsistently

简言之:充满偶然性和异然性

简言之:充满偶然性和反复无常

fromRoman 应该能将给定的合法罗马数字表示转换为阿拉伯数字表示。

fromRoman 应该能将给定的合法罗马数字表示转换为阿拉伯数字表示。

2006-03-21 校对记要

校对文件: roman.xml

章节: [http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/htmlflat/diveintopython.html#roman 第13章]

[http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/htmlflat/diveintopython.html#roman.intro 13.1]

1st paragraph 2nd sentence:

Now that you have some Python under your belt, you're going to step back and look at the steps that happen before the code gets written.

现在你以对 Python 更多的了解将回顾这个程序并从其代码开发之前入手。

既然你已对Python 有了一定的了解,那么接下来将回顾这个程序并从其代码被开发之前入手。

2nd paragraph 1st sentence:

In the next few chapters, you're going to write, debug, and optimize a set of utility functions to convert to and from Roman numerals.

在接下来的几章中,你将会编写,纠错以及优化一系列使用函数来进行罗马数字和阿拉伯数字之间的转换。

在接下来的几章中,你将编写、调试和优化一系列工具函数来进行罗马数字和阿拉伯数字之间的转换。

roman.py 功能需求 中所有的valid翻译成“有效”invalid翻译成“无效”较翻译成“合法”“非法”合适。

需求第6点:

6. If you take a number, convert it to Roman numerals, then convert that back to a number, you should end up with the number you started with. So fromRoman(toRoman(n)) == n for all n in 1..3999.

将一个数转换为罗马数字表示,再转换回阿拉报数字表示后应该和最初的数相同。因此,fromRoman(toRoman(n)) == n 对于 1..3999 之间所有 n 都适用。

将一个数转换为罗马数字表示,再转换回阿拉伯数字表示后应该和最初的数相同。因此,fromRoman(toRoman(n)) == n 对于 1..3999 之间所有 n 都适用

需求第7点:

7. toRoman should always return a Roman numeral using uppercase letters.

toRoman 返回的罗马数字应该适用大写字母。

toRoman 返回的罗马数字应该使用大写字母。

last sentence between parentheses short answer: haphazardly and inconsistently

简言之:充满偶然性和异然性

简言之:充满偶然性和反复无常

fromRoman 应该能将给定的合法罗马数字表示转换为阿拉伯数字表示。

fromRoman 应该能将给定的合法罗马数字表示转换为阿拉伯数字表示。

DiveIntoPythonZh/2006-03-21 (last edited 2009-12-25 07:13:54 by localhost)