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

Skip to content

Commit 55e9f2d

Browse files
Justin Bearmattwang44
Justin Bear
authored andcommitted
translate format specification rst:305-324
1 parent ef517a3 commit 55e9f2d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

library/string.po

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2023-07-17 17:39+0800\n"
11-
"PO-Revision-Date: 2023-10-22 20:52+0800\n"
11+
"PO-Revision-Date: 2023-11-25 15:57+0800\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -17,7 +17,7 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=1; plural=0;\n"
20-
"X-Generator: Poedit 3.4\n"
20+
"X-Generator: Poedit 3.4.1\n"
2121

2222
#: ../../library/string.rst:2
2323
msgid ":mod:`string` --- Common string operations"
@@ -381,18 +381,19 @@ msgid ""
381381
"Most built-in types implement the following options for format "
382382
"specifications, although some of the formatting options are only supported "
383383
"by the numeric types."
384-
msgstr ""
384+
msgstr "大部分內建型別為了格式規格實作了下列選項,不過有些選項只支援數值型別。"
385385

386386
#: ../../library/string.rst:308
387387
msgid ""
388388
"A general convention is that an empty format specification produces the same "
389389
"result as if you had called :func:`str` on the value. A non-empty format "
390390
"specification typically modifies the result."
391391
msgstr ""
392+
"一般來說,輸入空格式會產生和 :func:`str` 相同的結果,非空的格式才會修改結果。"
392393

393394
#: ../../library/string.rst:312
394395
msgid "The general form of a *standard format specifier* is:"
395-
msgstr ""
396+
msgstr "*標準格式規範* 的一般型如下 :"
396397

397398
#: ../../library/string.rst:324
398399
msgid ""
@@ -404,6 +405,11 @@ msgid ""
404405
"curly brace with a nested replacement field. This limitation doesn't affect "
405406
"the :func:`format` function."
406407
msgstr ""
408+
"如果給定了一個有效的 *align* 值,則可以在它之前加一個 *fill* 字符,且該字符可"
409+
"為任意值,若不加的話預設為空格。使用 :ref:`formatted string literal <f-"
410+
"strings>` 或 :meth:`str.format` 時是無法使用花括號(“``{``” 或 “``}``”)作為 "
411+
"*fille* 字符,但仍可透過巢狀替換的方式插入花括號,並且不影響 :func:`format` "
412+
"函式。"
407413

408414
#: ../../library/string.rst:333
409415
msgid "The meaning of the various alignment options is as follows:"

0 commit comments

Comments
 (0)