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

Skip to content

Commit 11c4e53

Browse files
[po] auto sync
1 parent 2062aa4 commit 11c4e53

7 files changed

Lines changed: 6995 additions & 6984 deletions

File tree

library/functions.po

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ msgid ""
2020
msgstr ""
2121
"Project-Id-Version: Python 3.9\n"
2222
"Report-Msgid-Bugs-To: \n"
23-
"POT-Creation-Date: 2021-03-02 05:36+0000\n"
23+
"POT-Creation-Date: 2021-04-01 05:55+0000\n"
2424
"PO-Revision-Date: 2017-02-16 23:11+0000\n"
2525
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
2626
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -2640,19 +2640,33 @@ msgstr "另请参阅 :ref:`bltin-type-objects`。"
26402640

26412641
#: ../../library/functions.rst:1707
26422642
msgid ""
2643+
"Keyword arguments provided to the three argument form are passed to the "
2644+
"appropriate metaclass machinery (usually :meth:`~object.__init_subclass__`) "
2645+
"in the same way that keywords in a class definition (besides *metaclass*) "
2646+
"would."
2647+
msgstr ""
2648+
"提供给三参数形式的关键字参数会被传递给适当的元类机制 (通常为 "
2649+
":meth:`~object.__init_subclass__`),相当于类定义中关键字 (除了 *metaclass*) 的行为方式。"
2650+
2651+
#: ../../library/functions.rst:1712
2652+
msgid "See also :ref:`class-customization`."
2653+
msgstr "另请参阅 :ref:`class-customization`。"
2654+
2655+
#: ../../library/functions.rst:1714
2656+
msgid ""
26432657
"Subclasses of :class:`type` which don't override ``type.__new__`` may no "
26442658
"longer use the one-argument form to get the type of an object."
26452659
msgstr ":class:`type` 的子类如果未重载 ``type.__new__``,将不再能使用一个参数的形式来获取对象的类型。"
26462660

2647-
#: ../../library/functions.rst:1713
2661+
#: ../../library/functions.rst:1720
26482662
msgid ""
26492663
"Return the :attr:`~object.__dict__` attribute for a module, class, instance,"
26502664
" or any other object with a :attr:`~object.__dict__` attribute."
26512665
msgstr ""
26522666
"返回模块、类、实例或任何其它具有 :attr:`~object.__dict__` 属性的对象的 :attr:`~object.__dict__` "
26532667
"属性。"
26542668

2655-
#: ../../library/functions.rst:1716
2669+
#: ../../library/functions.rst:1723
26562670
msgid ""
26572671
"Objects such as modules and instances have an updateable "
26582672
":attr:`~object.__dict__` attribute; however, other objects may have write "
@@ -2664,7 +2678,7 @@ msgstr ""
26642678
":attr:`~object.__dict__` 属性可能会设为限制写入(例如,类会使用 :class:`types.MappingProxyType`"
26652679
" 来防止直接更新字典)。"
26662680

2667-
#: ../../library/functions.rst:1721
2681+
#: ../../library/functions.rst:1728
26682682
msgid ""
26692683
"Without an argument, :func:`vars` acts like :func:`locals`. Note, the "
26702684
"locals dictionary is only useful for reads since updates to the locals "
@@ -2673,7 +2687,7 @@ msgstr ""
26732687
"不带参数时,:func:`vars` 的行为类似 :func:`locals`。 请注意,locals 字典仅对于读取起作用,因为对 locals "
26742688
"字典的更新会被忽略。"
26752689

2676-
#: ../../library/functions.rst:1725
2690+
#: ../../library/functions.rst:1732
26772691
msgid ""
26782692
"A :exc:`TypeError` exception is raised if an object is specified but it "
26792693
"doesn't have a :attr:`~object.__dict__` attribute (for example, if its class"
@@ -2682,11 +2696,11 @@ msgstr ""
26822696
"如果指定了一个对象但它没有 :attr:`~object.__dict__` 属性(例如,当它所属的类定义了 "
26832697
":attr:`~object.__slots__` 属性时)则会引发 :exc:`TypeError` 异常。"
26842698

2685-
#: ../../library/functions.rst:1731
2699+
#: ../../library/functions.rst:1738
26862700
msgid "Make an iterator that aggregates elements from each of the iterables."
26872701
msgstr "创建一个聚合了来自每个可迭代对象中的元素的迭代器。"
26882702

2689-
#: ../../library/functions.rst:1733
2703+
#: ../../library/functions.rst:1740
26902704
msgid ""
26912705
"Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th "
26922706
"element from each of the argument sequences or iterables. The iterator "
@@ -2698,7 +2712,7 @@ msgstr ""
26982712
"当所输入可迭代对象中最短的一个被耗尽时,迭代器将停止迭代。 当只有一个可迭代对象参数时,它将返回一个单元组的迭代器。 不带参数时,它将返回一个空迭代器。"
26992713
" 相当于::"
27002714

2701-
#: ../../library/functions.rst:1752
2715+
#: ../../library/functions.rst:1759
27022716
msgid ""
27032717
"The left-to-right evaluation order of the iterables is guaranteed. This "
27042718
"makes possible an idiom for clustering a data series into n-length groups "
@@ -2710,7 +2724,7 @@ msgstr ""
27102724
"的分组。 这将重复 *同样的* 迭代器 ``n`` 次,以便每个输出的元组具有第 ``n`` 次调用该迭代器的结果。 它的作用效果就是将输入拆分为长度为"
27112725
" n 的数据块。"
27122726

2713-
#: ../../library/functions.rst:1758
2727+
#: ../../library/functions.rst:1765
27142728
msgid ""
27152729
":func:`zip` should only be used with unequal length inputs when you don't "
27162730
"care about trailing, unmatched values from the longer iterables. If those "
@@ -2719,19 +2733,19 @@ msgstr ""
27192733
"当你不用关心较长可迭代对象末尾不匹配的值时,则 :func:`zip` 只须使用长度不相等的输入即可。 如果那些值很重要,则应改用 "
27202734
":func:`itertools.zip_longest`。"
27212735

2722-
#: ../../library/functions.rst:1762
2736+
#: ../../library/functions.rst:1769
27232737
msgid ""
27242738
":func:`zip` in conjunction with the ``*`` operator can be used to unzip a "
27252739
"list::"
27262740
msgstr ":func:`zip` 与 ``*`` 运算符相结合可以用来拆解一个列表::"
27272741

2728-
#: ../../library/functions.rst:1783
2742+
#: ../../library/functions.rst:1790
27292743
msgid ""
27302744
"This is an advanced function that is not needed in everyday Python "
27312745
"programming, unlike :func:`importlib.import_module`."
27322746
msgstr "与 :func:`importlib.import_module` 不同,这是一个日常 Python 编程中不需要用到的高级函数。"
27332747

2734-
#: ../../library/functions.rst:1786
2748+
#: ../../library/functions.rst:1793
27352749
msgid ""
27362750
"This function is invoked by the :keyword:`import` statement. It can be "
27372751
"replaced (by importing the :mod:`builtins` module and assigning to "
@@ -2747,7 +2761,7 @@ msgstr ""
27472761
"不建议这样做,因为使用导入钩子 (参见 :pep:`302`) 通常更容易实现同样的目标,并且不会导致代码问题,因为许多代码都会假定所用的是默认实现。 "
27482762
"同样也不建议直接使用 :func:`__import__` 而应该用 :func:`importlib.import_module`。"
27492763

2750-
#: ../../library/functions.rst:1795
2764+
#: ../../library/functions.rst:1802
27512765
msgid ""
27522766
"The function imports the module *name*, potentially using the given "
27532767
"*globals* and *locals* to determine how to interpret the name in a package "
@@ -2760,7 +2774,7 @@ msgstr ""
27602774
"给出了应该从由 *name* 指定的模块导入对象或子模块的名称。 标准实现完全不使用其 *locals* 参数,而仅使用 *globals* 参数来确定"
27612775
" :keyword:`import` 语句的包上下文。"
27622776

2763-
#: ../../library/functions.rst:1802
2777+
#: ../../library/functions.rst:1809
27642778
msgid ""
27652779
"*level* specifies whether to use absolute or relative imports. ``0`` (the "
27662780
"default) means only perform absolute imports. Positive values for *level* "
@@ -2771,7 +2785,7 @@ msgstr ""
27712785
"*level* 指定是使用绝对还是相对导入。 ``0`` (默认值) 意味着仅执行绝对导入。 *level* 为正数值表示相对于模块调用 "
27722786
":func:`__import__` 的目录,将要搜索的父目录层数 (详情参见 :pep:`328`)。"
27732787

2774-
#: ../../library/functions.rst:1808
2788+
#: ../../library/functions.rst:1815
27752789
msgid ""
27762790
"When the *name* variable is of the form ``package.module``, normally, the "
27772791
"top-level package (the name up till the first dot) is returned, *not* the "
@@ -2781,61 +2795,61 @@ msgstr ""
27812795
"当 *name* 变量的形式为 ``package.module`` 时,通常将会返回最高层级的包(第一个点号之前的名称),而 *不是* 以 "
27822796
"*name* 命名的模块。 但是,当给出了非空的 *fromlist* 参数时,则将返回以 *name* 命名的模块。"
27832797

2784-
#: ../../library/functions.rst:1813
2798+
#: ../../library/functions.rst:1820
27852799
msgid ""
27862800
"For example, the statement ``import spam`` results in bytecode resembling "
27872801
"the following code::"
27882802
msgstr "例如,语句 ``import spam`` 的结果将为与以下代码作用相同的字节码::"
27892803

2790-
#: ../../library/functions.rst:1818
2804+
#: ../../library/functions.rst:1825
27912805
msgid "The statement ``import spam.ham`` results in this call::"
27922806
msgstr "语句 ``import spam.ham`` 的结果将为以下调用::"
27932807

2794-
#: ../../library/functions.rst:1822
2808+
#: ../../library/functions.rst:1829
27952809
msgid ""
27962810
"Note how :func:`__import__` returns the toplevel module here because this is"
27972811
" the object that is bound to a name by the :keyword:`import` statement."
27982812
msgstr ""
27992813
"请注意在这里 :func:`__import__` 是如何返回顶层模块的,因为这是通过 :keyword:`import` 语句被绑定到特定名称的对象。"
28002814

2801-
#: ../../library/functions.rst:1825
2815+
#: ../../library/functions.rst:1832
28022816
msgid ""
28032817
"On the other hand, the statement ``from spam.ham import eggs, sausage as "
28042818
"saus`` results in ::"
28052819
msgstr "另一方面,语句 ``from spam.ham import eggs, sausage as saus`` 的结果将为 ::"
28062820

2807-
#: ../../library/functions.rst:1832
2821+
#: ../../library/functions.rst:1839
28082822
msgid ""
28092823
"Here, the ``spam.ham`` module is returned from :func:`__import__`. From "
28102824
"this object, the names to import are retrieved and assigned to their "
28112825
"respective names."
28122826
msgstr ""
28132827
"在这里, ``spam.ham`` 模块会由 :func:`__import__` 返回。 要导入的对象将从此对象中提取并赋值给它们对应的名称。"
28142828

2815-
#: ../../library/functions.rst:1836
2829+
#: ../../library/functions.rst:1843
28162830
msgid ""
28172831
"If you simply want to import a module (potentially within a package) by "
28182832
"name, use :func:`importlib.import_module`."
28192833
msgstr "如果您只想按名称导入模块(可能在包中),请使用 :func:`importlib.import_module`"
28202834

2821-
#: ../../library/functions.rst:1839
2835+
#: ../../library/functions.rst:1846
28222836
msgid ""
28232837
"Negative values for *level* are no longer supported (which also changes the "
28242838
"default value to 0)."
28252839
msgstr "*level* 的值不再支持负数(默认值也修改为0)。"
28262840

2827-
#: ../../library/functions.rst:1843
2841+
#: ../../library/functions.rst:1850
28282842
msgid ""
28292843
"When the command line options :option:`-E` or :option:`-I` are being used, "
28302844
"the environment variable :envvar:`PYTHONCASEOK` is now ignored."
28312845
msgstr ""
28322846
"当使用了命令行参数 :option:`-E` 或 :option:`-I` 时,环境变量 :envvar:`PYTHONCASEOK` 现在将被忽略。"
28332847

2834-
#: ../../library/functions.rst:1848
2848+
#: ../../library/functions.rst:1855
28352849
msgid "Footnotes"
28362850
msgstr "脚注"
28372851

2838-
#: ../../library/functions.rst:1849
2852+
#: ../../library/functions.rst:1856
28392853
msgid ""
28402854
"Note that the parser only accepts the Unix-style end of line convention. If "
28412855
"you are reading the code from a file, make sure to use newline conversion "

0 commit comments

Comments
 (0)