11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2021 , Python Software Foundation
2+ # Copyright (C) 2001-2024 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
88# ww song <sww4718168@gmail.com>, 2020
99# Alpha Du <alphanow@gmail.com>, 2020
1010# ppcfish <ppcfish@gmail.com>, 2020
11- # Freesand Leo <yuqinju@163.com>, 2021
11+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2023
12+ # Freesand Leo <yuqinju@163.com>, 2024
1213#
1314#, fuzzy
1415msgid ""
1516msgstr ""
1617"Project-Id-Version : Python 3.8\n "
1718"Report-Msgid-Bugs-To : \n "
18- "POT-Creation-Date : 2021-03-16 16:44 +0000\n "
19+ "POT-Creation-Date : 2024-05-03 23:17 +0000\n "
1920"PO-Revision-Date : 2020-05-30 11:53+0000\n "
20- "Last-Translator : Freesand Leo <yuqinju@163.com>, 2021 \n "
21- "Language-Team : Chinese (China) (https://www .transifex.com/python-doc/teams/5390/zh_CN/)\n "
21+ "Last-Translator : Freesand Leo <yuqinju@163.com>, 2024 \n "
22+ "Language-Team : Chinese (China) (https://app .transifex.com/python-doc/teams/5390/zh_CN/)\n "
2223"MIME-Version : 1.0\n "
2324"Content-Type : text/plain; charset=UTF-8\n "
2425"Content-Transfer-Encoding : 8bit\n "
@@ -35,22 +36,23 @@ msgstr "目录"
3536
3637#: ../../faq/design.rst:11
3738msgid "Why does Python use indentation for grouping of statements?"
38- msgstr "为什么Python使用缩进来分组语句 ?"
39+ msgstr "为什么 Python 使用缩进来分组语句 ?"
3940
4041#: ../../faq/design.rst:13
4142msgid ""
4243"Guido van Rossum believes that using indentation for grouping is extremely "
4344"elegant and contributes a lot to the clarity of the average Python program. "
4445"Most people learn to love this feature after a while."
4546msgstr ""
46- "Guido van Rossum 认为使用缩进进行分组非常优雅,并且大大提高了普通Python程序的清晰度。大多数人在一段时间后就学会并喜欢上这个功能。"
47+ "Guido van Rossum 认为使用缩进进行分组非常优雅,并且大大提高了普通 Python 程序的清晰度。 "
48+ "大多数人在一段时间后就会喜欢上这个特性。"
4749
4850#: ../../faq/design.rst:17
4951msgid ""
5052"Since there are no begin/end brackets there cannot be a disagreement between"
5153" grouping perceived by the parser and the human reader. Occasionally C "
5254"programmers will encounter a fragment of code like this::"
53- msgstr "由于没有开始/结束括号,因此解析器感知的分组与人类读者之间不会存在分歧。偶尔C程序员会遇到像这样的代码片段 ::"
55+ msgstr "由于没有开始/结束括号,因此解析器感知的分组与人类读者之间不会存在分歧。 偶尔 C 程序员会遇到像这样的代码片段 ::"
5456
5557#: ../../faq/design.rst:26
5658msgid ""
@@ -82,9 +84,9 @@ msgid ""
8284"brackets -- the lack of declarations and the high-level data types are also "
8385"responsible -- but the indentation-based syntax certainly helps."
8486msgstr ""
85- "许多编码风格将开始/结束括号单独放在一行上。这使得程序相当长,浪费了宝贵的屏幕空间,使得更难以对程序进行全面的了解。理想情况下,函数应该适合一个屏幕(例如,20 "
86- "--30行)。 20行Python可以完成比20行C更多的工作。这不仅仅是由于缺少开始/结束括号 -- 缺少声明和高级数据类型也是其中的原因 -- "
87- "但缩进基于语法肯定有帮助 。"
87+ "许多编码风格将开始/结束括号单独放在一行上。这使得程序相当长,浪费了宝贵的屏幕空间,使得更难以对程序进行全面的了解。 "
88+ "理想情况下,函数应该适合一个屏幕(例如,20 --30行)。 20 行 Python 可以完成比 20 行 C 更多的工作。 "
89+ "这不仅仅是由于没有开始/结束括号 -- 无需声明以及高层级的数据类型也是其中的原因 -- 但基于缩进的语法肯定有帮助 。"
8890
8991#: ../../faq/design.rst:46
9092msgid "Why am I getting strange results with simple arithmetic operations?"
@@ -304,7 +306,7 @@ msgstr ""
304306
305307#: ../../faq/design.rst:191
306308msgid "Why is join() a string method instead of a list or tuple method?"
307- msgstr "为什么 join()是一个字符串方法而不是列表或元组方法?"
309+ msgstr "为什么 join() 是一个字符串方法而不是列表或元组方法?"
308310
309311#: ../../faq/design.rst:193
310312msgid ""
@@ -314,8 +316,8 @@ msgid ""
314316"methods have been widely accepted, but the one which appears to make some "
315317"programmers feel uncomfortable is::"
316318msgstr ""
317- "从Python "
318- "1.6开始,字符串变得更像其他标准类型,当添加方法时,这些方法提供的功能与始终使用String模块的函数时提供的功能相同 。这些新方法中的大多数已被广泛接受,但似乎让一些程序员感到不舒服的一种方法是:"
319+ "从 Python 1.6 开始,字符串变得更像其他标准类型,当添加方法时,这些方法提供的功能与始终使用 String "
320+ "模块的函数时提供的功能相同 。这些新方法中的大多数已被广泛接受,但似乎让一些程序员感到不舒服的一种方法是:"
319321
320322#: ../../faq/design.rst:201
321323msgid "which gives the result::"
@@ -462,9 +464,8 @@ msgid ""
462464"other languages, where they add functionality, Python lambdas are only a "
463465"shorthand notation if you're too lazy to define a function."
464466msgstr ""
465- "Python的 "
466- "lambda表达式不能包含语句,因为Python的语法框架不能处理嵌套在表达式内部的语句。然而,在Python中,这并不是一个严重的问题。与其他语言中添加功能的lambda表单不同,Python的"
467- " lambdas只是一种速记符号,如果您懒得定义函数的话。"
467+ "Python 的 lambda 表达式不能包含语句,因为Python的语法框架不能处理嵌套在表达式内部的语句。然而,在 Python "
468+ "中,这并不是一个严重的问题。 与其他语言中添加功能的 lambda 形式不同,Python 的 lambda 只是一种速记符号,如果您懒得定义函数的话。"
468469
469470#: ../../faq/design.rst:316
470471msgid ""
@@ -798,7 +799,7 @@ msgid ""
798799"and other hash based structures will misbehave."
799800msgstr ""
800801"此外,必须始终如此,如果 ``o1 == o2`` (即 ``o1.__eq__(o2) is True`` )则 ``hash(o1) == "
801- "hash(o2)``(即 ``o1.__hash__() == o2.__hash__()`` ),无论对象是否在字典中。 "
802+ "hash(o2)`` (即 ``o1.__hash__() == o2.__hash__()`` ),无论对象是否在字典中。 "
802803"如果你不能满足这些限制,字典和其他基于 hash 的结构将会出错。"
803804
804805#: ../../faq/design.rst:534
@@ -861,7 +862,7 @@ msgstr ""
861862"Python 2.6添加了一个 :mod:`abc` 模块,允许定义抽象基类 (ABCs)。然后可以使用 :func:`isinstance` 和 "
862863":func:`issubclass` 来检查实例或类是否实现了特定的ABC。 :mod:`collections.abc` 模块定义了一组有用的ABCs"
863864" 例如 :class:`~collections.abc.Iterable` , :class:`~collections.abc.Container`"
864- " , 和 :class:`~collections.abc.MutableMapping` "
865+ " , 和 :class:`~collections.abc.MutableMapping`"
865866
866867#: ../../faq/design.rst:573
867868msgid ""
@@ -1044,7 +1045,7 @@ msgstr "这也具有提高执行速度的副作用,因为Python在运行时解
10441045
10451046#: ../../faq/design.rst:711
10461047msgid "Why are colons required for the if/while/def/class statements?"
1047- msgstr "为什么 if/while/def/class语句需要冒号? "
1048+ msgstr "为什么 if/while/def/class语句需要冒号?"
10481049
10491050#: ../../faq/design.rst:713
10501051msgid ""
0 commit comments