@@ -323,6 +323,8 @@ msgid ""
323
323
"`str` on the value, ``'!r'`` which calls :func:`repr` and ``'!a'`` which "
324
324
"calls :func:`ascii`."
325
325
msgstr ""
326
+ "目前支援三種轉換旗標:``'!s'`` 會對該值呼叫 :func:`str`,``'!r'`` 會對該值"
327
+ "呼叫 :func:`repr`,而 ``'!a'`` 則會對該值呼叫 :func:`ascii`。"
326
328
327
329
#: ../../library/string.rst:269
328
330
msgid "Some examples::"
@@ -338,12 +340,15 @@ msgid ""
338
340
"decimal precision and so on. Each value type can define its own "
339
341
"\" formatting mini-language\" or interpretation of the *format_spec*."
340
342
msgstr ""
343
+ "*format_spec* 欄位描述了值的呈現規格,例如欄位寬度、對齊、填充、小"
344
+ "數精度等細節資訊。每種值類型都可以定義自己的「格式化迷你語言」或對 "
345
+ "*format_spec* 的解釋。"
341
346
342
347
#: ../../library/string.rst:280
343
348
msgid ""
344
349
"Most built-in types support a common formatting mini-language, which is "
345
350
"described in the next section."
346
- msgstr ""
351
+ msgstr "大多數內建型別都支援常見的格式化迷你語言,下一節將會詳細說明。 "
347
352
348
353
#: ../../library/string.rst:283
349
354
msgid ""
@@ -354,6 +359,9 @@ msgid ""
354
359
"*format_spec* string is interpreted. This allows the formatting of a value "
355
360
"to be dynamically specified."
356
361
msgstr ""
362
+ "*format_spec* 欄位還可以在其內部包含巢狀的替換字段。這些巢狀的替換字段包含字"
363
+ "段名稱、轉換旗標、格式規格描述,但是不允許再更深層的巢狀。format_spec 内部的"
364
+ "替換字段會在解讀 *format_spec* 字符串之前先被解讀。這允許動態地指定值的格式。"
357
365
358
366
#: ../../library/string.rst:290
359
367
msgid "See the :ref:`formatexamples` section for some examples."
0 commit comments