Skip to content

Commit 6bc891b

Browse files
Justin Bearmattwang44
authored andcommitted
translate format specification rst:305-324
1 parent 0861c86 commit 6bc891b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

library/string.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,18 +389,20 @@ msgid ""
389389
"Most built-in types implement the following options for format "
390390
"specifications, although some of the formatting options are only supported "
391391
"by the numeric types."
392-
msgstr ""
392+
msgstr "大部分內建型別為了格式規格實作了下列選項,不過有些選項只支援數值型別。"
393393

394394
#: ../../library/string.rst:308
395395
msgid ""
396396
"A general convention is that an empty format specification produces the same "
397397
"result as if you had called :func:`str` on the value. A non-empty format "
398398
"specification typically modifies the result."
399399
msgstr ""
400+
"一般來說,輸入空格式規格會產生和呼叫 :func:`str` 函式相同的結果,非空的格式規"
401+
"格才會修改結果。"
400402

401403
#: ../../library/string.rst:312
402404
msgid "The general form of a *standard format specifier* is:"
403-
msgstr ""
405+
msgstr "*標準格式規範*的一般型如下:"
404406

405407
#: ../../library/string.rst:324
406408
msgid ""
@@ -412,6 +414,10 @@ msgid ""
412414
"curly brace with a nested replacement field. This limitation doesn't affect "
413415
"the :func:`format` function."
414416
msgstr ""
417+
"如果給定了一個有效的 *align* 值,則可以在它之前加一個 *fill* 字元,且該字元可"
418+
"為任意值,若不加的話預設為空格。使用 :ref:`格式字串 <f-strings>` 或 :meth:"
419+
"`str.format` 時是無法使用大括號(\"``{``\"\"``}``\")作為 *fill* 字元,但"
420+
"仍可透過巢狀替換的方式插入大括號,並且不影響 :func:`format` 函式。"
415421

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy