1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022 , Python Software Foundation
2
+ # Copyright (C) 2001-2024 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
7
# ww song <sww4718168@gmail.com>, 2018
8
8
# Shengjing Zhu <zsj950618@gmail.com>, 2019
9
9
# ppcfish <ppcfish@gmail.com>, 2019
10
- # Freesand Leo <yuqinju@163.com>, 2021
11
10
# Alpha Du <alphanow@gmail.com>, 2022
11
+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2023
12
+ # Freesand Leo <yuqinju@163.com>, 2024
12
13
#
13
14
#, fuzzy
14
15
msgid ""
15
16
msgstr ""
16
17
"Project-Id-Version : Python 3.9\n "
17
18
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2022-11-04 14:34 +0000\n "
19
+ "POT-Creation-Date : 2024-05-03 21:11 +0000\n "
19
20
"PO-Revision-Date : 2017-02-16 17:42+0000\n "
20
- "Last-Translator : Alpha Du <alphanow@gmail .com>, 2022 \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 "
22
23
"MIME-Version : 1.0\n "
23
24
"Content-Type : text/plain; charset=UTF-8\n "
24
25
"Content-Transfer-Encoding : 8bit\n "
@@ -35,22 +36,23 @@ msgstr "目录"
35
36
36
37
#: ../../faq/design.rst:11
37
38
msgid "Why does Python use indentation for grouping of statements?"
38
- msgstr "为什么Python使用缩进来分组语句 ?"
39
+ msgstr "为什么 Python 使用缩进来分组语句 ?"
39
40
40
41
#: ../../faq/design.rst:13
41
42
msgid ""
42
43
"Guido van Rossum believes that using indentation for grouping is extremely "
43
44
"elegant and contributes a lot to the clarity of the average Python program. "
44
45
"Most people learn to love this feature after a while."
45
46
msgstr ""
46
- "Guido van Rossum 认为使用缩进进行分组非常优雅,并且大大提高了普通Python程序的清晰度。大多数人在一段时间后就学会并喜欢上这个功能。"
47
+ "Guido van Rossum 认为使用缩进进行分组非常优雅,并且大大提高了普通 Python 程序的清晰度。 "
48
+ "大多数人在一段时间后就会喜欢上这个特性。"
47
49
48
50
#: ../../faq/design.rst:17
49
51
msgid ""
50
52
"Since there are no begin/end brackets there cannot be a disagreement between"
51
53
" grouping perceived by the parser and the human reader. Occasionally C "
52
54
"programmers will encounter a fragment of code like this::"
53
- msgstr "由于没有开始/结束括号,因此解析器感知的分组与人类读者之间不会存在分歧。偶尔C程序员会遇到像这样的代码片段 ::"
55
+ msgstr "由于没有开始/结束括号,因此解析器感知的分组与人类读者之间不会存在分歧。 偶尔 C 程序员会遇到像这样的代码片段 ::"
54
56
55
57
#: ../../faq/design.rst:26
56
58
msgid ""
@@ -60,7 +62,7 @@ msgid ""
60
62
"decremented even for ``x > y``."
61
63
msgstr ""
62
64
"如果条件为真,则只执行 ``x++`` 语句,但缩进会使你认为情况并非如此。 即使是经验丰富的 C 程序员有时也会长久地盯着它发呆,不明白为什么在 "
63
- "``x > y``时 ``y`` 也会减少。"
65
+ "``x > y`` 时 ``y`` 也会减少。"
64
66
65
67
#: ../../faq/design.rst:31
66
68
msgid ""
@@ -70,7 +72,7 @@ msgid ""
70
72
"style, it is normal to feel somewhat uneasy when reading (or being required "
71
73
"to write) in a different one."
72
74
msgstr ""
73
- "因为没有开始/结束花括号,所以 Python 更不容易发生编码风格冲突 。 在 C 中有许多不同的放置花括号的方式。 "
75
+ "因为没有开始/结束花括号,所以 Python 更不容易发生代码风格冲突 。 在 C 中有许多不同的放置花括号的方式。 "
74
76
"在习惯了阅读和编写某种特定风格的代码之后,当阅读(或被要求编写)另一种风格的代码时通常都会令人感觉有点不舒服)。"
75
77
76
78
#: ../../faq/design.rst:38
@@ -83,9 +85,9 @@ msgid ""
83
85
"brackets -- the lack of declarations and the high-level data types are also "
84
86
"responsible -- but the indentation-based syntax certainly helps."
85
87
msgstr ""
86
- "许多编码风格将开始/结束括号单独放在一行上。这使得程序相当长,浪费了宝贵的屏幕空间,使得更难以对程序进行全面的了解。理想情况下,函数应该适合一个屏幕(例如,20 "
87
- "--30行)。 20行Python可以完成比20行C更多的工作。这不仅仅是由于缺少开始/结束括号 -- 缺少声明和高级数据类型也是其中的原因 -- "
88
- "但缩进基于语法肯定有帮助 。"
88
+ "许多编码风格将开始/结束括号单独放在一行上。这使得程序相当长,浪费了宝贵的屏幕空间,使得更难以对程序进行全面的了解。 "
89
+ "理想情况下,函数应该适合一个屏幕(例如,20 --30行)。 20 行 Python 可以完成比 20 行 C 更多的工作。 "
90
+ "这不仅仅是由于没有开始/结束括号 -- 无需声明以及高层级的数据类型也是其中的原因 -- 但基于缩进的语法肯定有帮助 。"
89
91
90
92
#: ../../faq/design.rst:48
91
93
msgid "Why am I getting strange results with simple arithmetic operations?"
@@ -305,7 +307,7 @@ msgstr ""
305
307
306
308
#: ../../faq/design.rst:193
307
309
msgid "Why is join() a string method instead of a list or tuple method?"
308
- msgstr "为什么 join()是一个字符串方法而不是列表或元组方法?"
310
+ msgstr "为什么 join() 是一个字符串方法而不是列表或元组方法?"
309
311
310
312
#: ../../faq/design.rst:195
311
313
msgid ""
@@ -315,8 +317,8 @@ msgid ""
315
317
"methods have been widely accepted, but the one which appears to make some "
316
318
"programmers feel uncomfortable is::"
317
319
msgstr ""
318
- "从Python "
319
- "1.6开始,字符串变得更像其他标准类型,当添加方法时,这些方法提供的功能与始终使用String模块的函数时提供的功能相同 。这些新方法中的大多数已被广泛接受,但似乎让一些程序员感到不舒服的一种方法是:"
320
+ "从 Python 1.6 开始,字符串变得更像其他标准类型,当添加方法时,这些方法提供的功能与始终使用 String "
321
+ "模块的函数时提供的功能相同 。这些新方法中的大多数已被广泛接受,但似乎让一些程序员感到不舒服的一种方法是:"
320
322
321
323
#: ../../faq/design.rst:203
322
324
msgid "which gives the result::"
@@ -463,9 +465,8 @@ msgid ""
463
465
"other languages, where they add functionality, Python lambdas are only a "
464
466
"shorthand notation if you're too lazy to define a function."
465
467
msgstr ""
466
- "Python的 "
467
- "lambda表达式不能包含语句,因为Python的语法框架不能处理嵌套在表达式内部的语句。然而,在Python中,这并不是一个严重的问题。与其他语言中添加功能的lambda表单不同,Python的"
468
- " lambdas只是一种速记符号,如果您懒得定义函数的话。"
468
+ "Python 的 lambda 表达式不能包含语句,因为Python的语法框架不能处理嵌套在表达式内部的语句。然而,在 Python "
469
+ "中,这并不是一个严重的问题。 与其他语言中添加功能的 lambda 形式不同,Python 的 lambda 只是一种速记符号,如果您懒得定义函数的话。"
469
470
470
471
#: ../../faq/design.rst:315
471
472
msgid ""
@@ -799,7 +800,7 @@ msgid ""
799
800
"and other hash based structures will misbehave."
800
801
msgstr ""
801
802
"此外,必须始终如此,如果 ``o1 == o2`` (即 ``o1.__eq__(o2) is True`` )则 ``hash(o1) == "
802
- "hash(o2)``(即 ``o1.__hash__() == o2.__hash__()`` ),无论对象是否在字典中。 "
803
+ "hash(o2)`` (即 ``o1.__hash__() == o2.__hash__()`` ),无论对象是否在字典中。 "
803
804
"如果你不能满足这些限制,字典和其他基于 hash 的结构将会出错。"
804
805
805
806
#: ../../faq/design.rst:533
@@ -862,7 +863,7 @@ msgstr ""
862
863
"Python 2.6添加了一个 :mod:`abc` 模块,允许定义抽象基类 (ABCs)。然后可以使用 :func:`isinstance` 和 "
863
864
":func:`issubclass` 来检查实例或类是否实现了特定的ABC。 :mod:`collections.abc` 模块定义了一组有用的ABCs"
864
865
" 例如 :class:`~collections.abc.Iterable` , :class:`~collections.abc.Container`"
865
- " , 和 :class:`~collections.abc.MutableMapping` "
866
+ " , 和 :class:`~collections.abc.MutableMapping`"
866
867
867
868
#: ../../faq/design.rst:572
868
869
msgid ""
@@ -1061,7 +1062,7 @@ msgstr ""
1061
1062
1062
1063
#: ../../faq/design.rst:719
1063
1064
msgid "Why are colons required for the if/while/def/class statements?"
1064
- msgstr "为什么 if/while/def/class语句需要冒号? "
1065
+ msgstr "为什么 if/while/def/class语句需要冒号?"
1065
1066
1066
1067
#: ../../faq/design.rst:721
1067
1068
msgid ""
0 commit comments