@@ -892,13 +892,13 @@ msgid ""
892892"names\" of particular values. Unless you are deliberately writing "
893893"introspective programs, this is usually an indication that a change of "
894894"approach might be beneficial."
895- msgstr ""
895+ msgstr "一般来说你的代码应该没有必要“知道”特定值的名称。 除非你是在编写特殊的内省程序,出现这样的问题通常表明如果改变方式可能会更有利。 "
896896
897897#: ../../faq/programming.rst:687
898898msgid ""
899899"In comp.lang.python, Fredrik Lundh once gave an excellent analogy in answer "
900900"to this question:"
901- msgstr ""
901+ msgstr "在 comp.lang.python 中,Fredrik Lundh 在回答这样的问题时曾经给出过一个绝佳的类比: "
902902
903903#: ../../faq/programming.rst:690
904904msgid ""
@@ -907,51 +907,53 @@ msgid ""
907907"so the only way to find out what it's called is to ask all your neighbours "
908908"(namespaces) if it's their cat (object)..."
909909msgstr ""
910+ "跟你找出在你家门廊见到的某只猫的名字所用的办法一样:猫(对象)自己无法告诉你它的名字,它根本就不在乎 —— "
911+ "所以找出它叫什么名字的唯一办法是问你的所有邻居(命名空间)那是不是他们的猫(对象)……"
910912
911913#: ../../faq/programming.rst:695
912914msgid ""
913915"....and don't be surprised if you'll find that it's known by many names, or "
914916"no name at all!"
915- msgstr ""
917+ msgstr "……并且如果你发现它有很多名字或根本没有名字也不必觉得惊讶! "
916918
917919#: ../../faq/programming.rst:700
918920msgid "What's up with the comma operator's precedence?"
919921msgstr "逗号运算符的优先级是什么?"
920922
921923#: ../../faq/programming.rst:702
922924msgid "Comma is not an operator in Python. Consider this session::"
923- msgstr ""
925+ msgstr "逗号在 Python 中不是运算符。 考虑这个例子:: "
924926
925927#: ../../faq/programming.rst:707
926928msgid ""
927929"Since the comma is not an operator, but a separator between expressions the "
928930"above is evaluated as if you had entered::"
929- msgstr ""
931+ msgstr "由于逗号不是运算符而是表达式之间的分隔符,以上代码的含义就相当于:: "
930932
931933#: ../../faq/programming.rst:712
932934msgid "not::"
933- msgstr ""
935+ msgstr "而不是:: "
934936
935937#: ../../faq/programming.rst:716
936938msgid ""
937939"The same is true of the various assignment operators (``=``, ``+=`` etc). "
938940"They are not truly operators but syntactic delimiters in assignment "
939941"statements."
940- msgstr ""
942+ msgstr "对于各种赋值运算符 (``=``, ``+=`` 等) 来说同样如此。 它们并不是真正的运算符而是赋值语句中的语法分隔符。 "
941943
942944#: ../../faq/programming.rst:721
943945msgid "Is there an equivalent of C's \" ?:\" ternary operator?"
944- msgstr ""
946+ msgstr "是否有与 C 的 \" ?: \" 三目运算符等价的东西? "
945947
946948#: ../../faq/programming.rst:723
947949msgid "Yes, there is. The syntax is as follows::"
948- msgstr ""
950+ msgstr "有的。 相应语法如下:: "
949951
950952#: ../../faq/programming.rst:730
951953msgid ""
952954"Before this syntax was introduced in Python 2.5, a common idiom was to use "
953955"logical operators::"
954- msgstr ""
956+ msgstr "在 Python 2.5 引入此语法之前,常见的做法是使用逻辑运算符:: "
955957
956958#: ../../faq/programming.rst:735
957959msgid ""
0 commit comments