File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -673,13 +673,18 @@ msgid ""
673
673
":attr:`last` could be set to non-string values or even deleted. We want to "
674
674
"make sure that these attributes always contain strings."
675
675
msgstr ""
676
+ "在本小节中,我们将对 :class:`Custom` 示例中 :attr:`first` 和 :attr:`last` 属性的设置提供更细致的控制。 "
677
+ "在我们上一版本的模块中,实例变量 :attr:`first` 和 :attr:`last` 可以被设为非字符串值甚至被删除。 "
678
+ "我们希望这些属性总是包含字符串。"
676
679
677
680
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/extending/newtypes_tutorial.rst:549
678
681
msgid ""
679
682
"To provide greater control, over the :attr:`first` and :attr:`last` "
680
683
"attributes, we'll use custom getter and setter functions. Here are the "
681
684
"functions for getting and setting the :attr:`first` attribute::"
682
685
msgstr ""
686
+ "为了提供对于 :attr:`first` 和 :attr:`last` 属性更强的控制,我们将使用自定义的读取和设置函数。 下面就是用于读取和设置 "
687
+ ":attr:`first` 属性的函数::"
683
688
684
689
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/extending/newtypes_tutorial.rst:580
685
690
msgid ""
You can’t perform that action at this time.
0 commit comments