Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7401a94

Browse files
[po] auto sync
1 parent 37b5a98 commit 7401a94

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.52%", "updated_at": "2024-02-04T06:55:44Z"}
1+
{"translation": "93.53%", "updated_at": "2024-02-04T07:55:48Z"}

library/__future__.po

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.12\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2024-02-02 14:13+0000\n"
17+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:54+0000\n"
1919
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2020
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -39,6 +39,8 @@ msgid ""
3939
"compiler to allow the use of new Python features in modules containing the "
4040
"future statement before the release in which the feature becomes standard."
4141
msgstr ""
42+
"``from __future__ import feature`` 形式的导入被称为 :ref:`future 语句 <future>`。 它们会被 "
43+
"Python 编译器当作特例,通过包含 future 语句来允许新的 Python 特性在该特性成为语言标准之前发布的模块中使用。"
4244

4345
#: ../../library/__future__.rst:16
4446
msgid ""
@@ -47,6 +49,8 @@ msgid ""
4749
" the :mod:`__future__` exists and is handled by the import system the same "
4850
"way any other Python module would be. This design serves three purposes:"
4951
msgstr ""
52+
"虽然这些future 语句被 Python 编译器赋予了额外的特殊含义,但它们仍然像会其他导入语句一样被执行,而 :mod:`__future__` "
53+
"的存在和被导入系统处理的方式与其他任何 Python 模块的相同。 这种设计有三个目的:"
5054

5155
#: ../../library/__future__.rst:21
5256
msgid ""
@@ -71,6 +75,9 @@ msgid ""
7175
":mod:`__future__` will fail, because there was no module of that name prior "
7276
"to 2.1)."
7377
msgstr ""
78+
"确保 :ref:`future 语句 <future>` 在 Python 2.1 之前的发布版上运行时至少能抛出运行时异常(对 "
79+
":mod:`__future__` 的导入将失败,因为will fail, because there was no module of that "
80+
"name prior to 2.1 之前没有这个模块名称)。"
7481

7582
#: ../../library/__future__.rst:34
7683
msgid "Module Contents"

library/csv.po

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ msgid ""
266266
"the dictionary are ignored. Any other optional or keyword arguments are "
267267
"passed to the underlying :class:`writer` instance."
268268
msgstr ""
269+
"创建一个对象,该对象在操作上类似常规 writer,但会将字典映射到输出行。 *fieldnames* 形参是一个由键组成的 :mod:`序列 "
270+
"<collections.abc>`,它指定字典中要传给 :meth:`~csvwriter.writerow` 方法并写入文件 *f* 的值的顺序。 "
271+
"如果字典没有 *fieldnames* 中的键,则可选的 *restval* 形参将指明要写入的值。 如果传递给 "
272+
":meth:`~csvwriter.writerow` 方法包含的键在 *fieldnames* 中找不到,则可选的 *extrasaction* "
273+
"形参将指明要执行的操作。 如果将其设为默认值 ``'raise'``,则会引发 :exc:`ValueError`。 如果将其设为 "
274+
"``'ignore'``,则字典中额外的值将被忽略。 任何其他可选或关键字参数都将被传递给下层的 :class:`writer` 实例。"
269275

270276
#: ../../library/csv.rst:212
271277
msgid ""
@@ -471,6 +477,10 @@ msgid ""
471477
" also specify individual formatting parameters, which have the same names as"
472478
" the attributes defined below for the :class:`Dialect` class."
473479
msgstr ""
480+
"为了更容易地指定输入和输出记录的格式,特定的多个格式化形参将组合成为不同的 dialect。 特定的 dialect 是 "
481+
":class:`Dialect` 类的一个子类,它包含多个用于描述 CSV 文件的格式的属性。 当创建 :class:`reader` 或 "
482+
":class:`writer` 对象时,程序员可以指定一个字符串或 :class:`Dialect` 类的子类作为 dialect 形参。 作为对 "
483+
"*dialect* 形参的补充或替代,程序员还可以指定单独的格式化形参,它们的名称与 :class:`Dialect` 类所定义的以下属性相同。"
474484

475485
#: ../../library/csv.rst:389
476486
msgid "Dialects support the following attributes:"
@@ -623,6 +633,10 @@ msgid ""
623633
"for other programs which read CSV files (assuming they support complex "
624634
"numbers at all)."
625635
msgstr ""
636+
":class:`writer` 对象 (:class:`DictWriter` 实例和 :func:`writer` 函数所返回的对象 ) "
637+
"具有以下公共方法。 对于 :class:`writer` 对象 *row* 必须是输出字符串或数字的可迭代对象的数字,而对于 "
638+
":class:`DictWriter` 对象则是一个将文件名映射到字符串或数字 (会先将其传给 :func:`str`) 的字典。 "
639+
"请注意在写入复数时会用圆括号括起来。 这可能会给其他读取 CSV 文件的程序带来一些问题 (假定它们确实支持复数)。"
626640

627641
#: ../../library/csv.rst:510
628642
msgid ""

0 commit comments

Comments
 (0)