1313# eric R <[email protected] >, 20181414# CommonZ <[email protected] >, 20181515# Zombie110year <[email protected] >, 201916- # stonejing <[email protected] >, 20191716# ppcfish <[email protected] >, 20191817# Meng Du <[email protected] >, 20191918@@ -5540,16 +5539,19 @@ msgid ""
55405539"function and can be extracted from function objects through their "
55415540":attr:`__code__` attribute. See also the :mod:`code` module."
55425541msgstr ""
5542+ "代码对象被具体实现用来表示“伪编译”的可执行 Python 代码,例如一个函数体。 它们不同于函数对象,因为它们不包含对其全局执行环境的引用。 "
5543+ "代码对象由内置的 :func:`compile` 函数返回,并可通过从函数对象的 :attr:`__code__` 属性从中提取。 另请参阅 "
5544+ ":mod:`code` 模块。"
55435545
55445546#: ../../library/stdtypes.rst:4574
55455547msgid ""
55465548"A code object can be executed or evaluated by passing it (instead of a "
55475549"source string) to the :func:`exec` or :func:`eval` built-in functions."
5548- msgstr ""
5550+ msgstr "可以通过将代码对象(而非源码字符串)传给 :func:`exec` 或 :func:`eval` 内置函数来执行或求值。 "
55495551
55505552#: ../../library/stdtypes.rst:4583
55515553msgid "Type Objects"
5552- msgstr "Type 对象 "
5554+ msgstr "类型对象 "
55535555
55545556#: ../../library/stdtypes.rst:4589
55555557msgid ""
@@ -5558,29 +5560,33 @@ msgid ""
55585560"operations on types. The standard module :mod:`types` defines names for all"
55595561" standard built-in types."
55605562msgstr ""
5563+ "类型对象表示各种对象类型。 对象的类型可通过内置函数 :func:`type` 来获取。 类型没有特殊的操作。 标准库模块 :mod:`types` "
5564+ "定义了所有标准内置类型的名称。"
55615565
55625566#: ../../library/stdtypes.rst:4594
55635567msgid "Types are written like this: ``<class 'int'>``."
5564- msgstr ""
5568+ msgstr "类型以这样的写法来表示: ``<class 'int'>``。 "
55655569
55665570#: ../../library/stdtypes.rst:4600
55675571msgid "The Null Object"
5568- msgstr ""
5572+ msgstr "空对象 "
55695573
55705574#: ../../library/stdtypes.rst:4602
55715575msgid ""
55725576"This object is returned by functions that don't explicitly return a value. "
55735577"It supports no special operations. There is exactly one null object, named "
55745578"``None`` (a built-in name). ``type(None)()`` produces the same singleton."
55755579msgstr ""
5580+ "此对象会由不显式地返回值的函数所返回。 它不支持任何特殊的操作。 空对象只有一种值 ``None`` (这是个内置名称)。 "
5581+ "``type(None)()`` 会生成同一个单例。"
55765582
55775583#: ../../library/stdtypes.rst:4606
55785584msgid "It is written as ``None``."
5579- msgstr ""
5585+ msgstr "该对象的写法为 ``None``。 "
55805586
55815587#: ../../library/stdtypes.rst:4613
55825588msgid "The Ellipsis Object"
5583- msgstr ""
5589+ msgstr "省略符对象 "
55845590
55855591#: ../../library/stdtypes.rst:4615
55865592msgid ""
@@ -5589,14 +5595,16 @@ msgid ""
55895595":const:`Ellipsis` (a built-in name). ``type(Ellipsis)()`` produces the "
55905596":const:`Ellipsis` singleton."
55915597msgstr ""
5598+ "此对象常被用于切片 (参见 :ref:`slicings`)。 它不支持任何特殊的操作。 省略符对象只有一种值 :const:`Ellipsis` "
5599+ "(这是个内置名称)。 ``type(Ellipsis)()`` 会生成 :const:`Ellipsis` 单例。"
55925600
55935601#: ../../library/stdtypes.rst:4620
55945602msgid "It is written as ``Ellipsis`` or ``...``."
5595- msgstr ""
5603+ msgstr "该对象的写法为 ``Ellipsis`` 或 ``...``。 "
55965604
55975605#: ../../library/stdtypes.rst:4626
55985606msgid "The NotImplemented Object"
5599- msgstr ""
5607+ msgstr "未实现对象 "
56005608
56015609#: ../../library/stdtypes.rst:4628
56025610msgid ""
@@ -5605,10 +5613,12 @@ msgid ""
56055613"more information. There is exactly one ``NotImplemented`` object. "
56065614"``type(NotImplemented)()`` produces the singleton instance."
56075615msgstr ""
5616+ "此对象会被作为比较和二元运算被应用于它们所不支持的类型时的返回值。 请参阅 :ref:`comparisons` 了解更多信息。 未实现对象只有一种值 "
5617+ "``NotImplemented``。 ``type(NotImplemented)()`` 会生成这个单例。"
56085618
56095619#: ../../library/stdtypes.rst:4633
56105620msgid "It is written as ``NotImplemented``."
5611- msgstr ""
5621+ msgstr "该对象的写法为 ``NotImplemented``。 "
56125622
56135623#: ../../library/stdtypes.rst:4639
56145624msgid "Boolean Values"
@@ -5624,20 +5634,23 @@ msgid ""
56245634"any value to a Boolean, if the value can be interpreted as a truth value "
56255635"(see section :ref:`truth` above)."
56265636msgstr ""
5637+ "布尔值是两个常量对象 ``False`` 和 ``True``。 它们被用来表示逻辑上的真假(不过其他值也可被当作真值或假值)。 "
5638+ "在数字类的上下文中(例如被用作算术运算符的参数时),它们的行为分别类似于整数 0 和 1。 内置函数 :func:`bool` "
5639+ "可被用来将任意值转换为布尔值,只要该值可被解析为一个逻辑值(参见之前的 :ref:`truth` 部分)。"
56275640
56285641#: ../../library/stdtypes.rst:4654
56295642msgid "They are written as ``False`` and ``True``, respectively."
5630- msgstr ""
5643+ msgstr "该对象的写法分别为 ``False`` 和 ``True``。 "
56315644
56325645#: ../../library/stdtypes.rst:4660
56335646msgid "Internal Objects"
5634- msgstr ""
5647+ msgstr "内部对象 "
56355648
56365649#: ../../library/stdtypes.rst:4662
56375650msgid ""
56385651"See :ref:`types` for this information. It describes stack frame objects, "
56395652"traceback objects, and slice objects."
5640- msgstr ""
5653+ msgstr "有关此对象的信息请参阅 :ref:`types`。 其中描述了栈帧对象、回溯对象以及切片对象等等。 "
56415654
56425655#: ../../library/stdtypes.rst:4669
56435656msgid "Special Attributes"
@@ -5648,7 +5661,7 @@ msgid ""
56485661"The implementation adds a few special read-only attributes to several object"
56495662" types, where they are relevant. Some of these are not reported by the "
56505663":func:`dir` built-in function."
5651- msgstr ""
5664+ msgstr "语言实现为部分对象类型添加了一些特殊的只读属性,它们具有各自的作用。 其中一些并不会被 :func:`dir` 内置函数所列出。 "
56525665
56535666#: ../../library/stdtypes.rst:4678
56545667msgid ""
0 commit comments