File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,13 +102,13 @@ msgid ""
102102" structures like lists and dictionaries, have the same representation using "
103103"either function. Strings, in particular, have two distinct representations."
104104msgstr ""
105- ":func:`str` 函数是用于返回人类可读的值的表示,而 :func:`repr` 是用于生成解释器可读的表示 (如果没有等效的语法,则会强制执行 "
106- ":exc:`SyntaxError`)对于没有人类可读性的表示的对象 , :func:`str` 将返回和 :func:`repr` "
107- "一样的值。很多值使用任一函数都具有相同的表示,比如数字或类似列表和字典的结构。特殊的是字符串有两个不同的表示 。"
105+ ":func:`str` 函数返回适于人类阅读的值, :func:`repr` 则生成适于解释器读取的值 (如果没有等效的语法,则强制执行 "
106+ ":exc:`SyntaxError`)。对于没有适合人类阅读展示结果的对象 , :func:`str` 返回与 :func:`repr` "
107+ "一样的值。一般情况下,数字、列表或字典等结构的值,使用这两个函数输出的展现形式是一样的。字符串则不同,有两种不同的展现形式 。"
108108
109109#: ../../tutorial/inputoutput.rst:68
110110msgid "Some examples::"
111- msgstr "几个例子:: "
111+ msgstr "示例如下: "
112112
113113#: ../../tutorial/inputoutput.rst:91
114114msgid ""
@@ -117,12 +117,12 @@ msgid ""
117117" like ``$x`` and replacing them with values from a dictionary, but offers "
118118"much less control of the formatting."
119119msgstr ""
120- ":mod:`string` 模块包含一个 :class:`~string.Template` 类,它提供了另一种将值替换为字符串的方法,使用类似 "
121- "``$x`` 的占位符并用字典中的值替换它们,但对格式的控制要少的多 。"
120+ ":mod:`string` 模块包含一个叫 :class:`~string.Template` 的类,提供了另一种将值替换为字符串的方法。该类使用 "
121+ "``$x`` 占位符,并用字典的值进行替换,但这种方式对格式控制的支持比较有限 。"
122122
123123#: ../../tutorial/inputoutput.rst:100
124124msgid "Formatted String Literals"
125- msgstr "格式化字符串文字 "
125+ msgstr "格式化字符串字面值 "
126126
127127#: ../../tutorial/inputoutput.rst:102
128128msgid ""
You can’t perform that action at this time.
0 commit comments