66msgstr ""
77"Project-Id-Version : Python 3.13\n "
88"Report-Msgid-Bugs-To : \n "
9- "POT-Creation-Date : 2025-04-08 00:14+0000\n "
9+ "POT-Creation-Date : 2025-05-10 00:14+0000\n "
1010"PO-Revision-Date : 2024-03-10 15:57+0800\n "
1111"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
1212"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -44,9 +44,9 @@ msgstr "此模組中定義的常數為:"
4444
4545#: ../../library/string.rst:26
4646msgid ""
47- "The concatenation of the :const:`ascii_lowercase` "
48- "and :const: `ascii_uppercase` constants described below. This value is not "
49- "locale- dependent."
47+ "The concatenation of the :const:`ascii_lowercase` and :const: "
48+ "`ascii_uppercase` constants described below. This value is not locale- "
49+ "dependent."
5050msgstr ""
5151"下文描述的 :const:`ascii_lowercase` 和 :const:`ascii_uppercase` 常數的串接,"
5252"該值不依賴於區域設定。"
@@ -88,19 +88,17 @@ msgstr ""
8888#: ../../library/string.rst:65
8989msgid ""
9090"String of ASCII characters which are considered printable by Python. This is "
91- "a combination "
92- "of :const:`digits`, :const:`ascii_letters`, :const:`punctuation`, "
93- "and :const:`whitespace`."
91+ "a combination of :const:`digits`, :const:`ascii_letters`, :const:"
92+ "`punctuation`, and :const:`whitespace`."
9493msgstr ""
95- "ASCII 字元的字串被 Python 是為可被列印輸出的。這"
96- "是 :const:`digits`、:const:`ascii_letters`、:const:`punctuation` "
97- "和 :const:`whitespace` 的組合。"
94+ "ASCII 字元的字串被 Python 是為可被列印輸出的。這是 :const:`digits`、:const:"
95+ "`ascii_letters`、:const:`punctuation` 和 :const:`whitespace` 的組合。"
9896
9997#: ../../library/string.rst:71
10098msgid ""
101- "By design, :meth:`string.printable.isprintable() <str.isprintable>` "
102- "returns : const:`False`. In particular, ``string.printable`` is not printable "
103- "in the POSIX sense (see :manpage:`LC_CTYPE <locale(5)>`)."
99+ "By design, :meth:`string.printable.isprintable() <str.isprintable>` returns : "
100+ "const:`False`. In particular, ``string.printable`` is not printable in the "
101+ "POSIX sense (see :manpage:`LC_CTYPE <locale(5)>`)."
104102msgstr ""
105103
106104#: ../../library/string.rst:78
@@ -138,11 +136,11 @@ msgstr ":class:`Formatter` 類別有以下的公開方法:"
138136#: ../../library/string.rst:101
139137msgid ""
140138"The primary API method. It takes a format string and an arbitrary set of "
141- "positional and keyword arguments. It is just a wrapper that "
142- "calls :meth: `vformat`."
139+ "positional and keyword arguments. It is just a wrapper that calls :meth: "
140+ "`vformat`."
143141msgstr ""
144- "主要的 API 方法。它接收一個格式字串及一組任意的位置引數與關鍵字引數,是呼 "
145- "叫 : meth:`vformat` 的包裝器 (wrapper)。"
142+ "主要的 API 方法。它接收一個格式字串及一組任意的位置引數與關鍵字引數,是呼叫 : "
143+ "meth:`vformat` 的包裝器 (wrapper)。"
146144
147145#: ../../library/string.rst:105
148146msgid ""
@@ -155,10 +153,9 @@ msgid ""
155153"This function does the actual work of formatting. It is exposed as a "
156154"separate function for cases where you want to pass in a predefined "
157155"dictionary of arguments, rather than unpacking and repacking the dictionary "
158- "as individual arguments using the ``*args`` and ``**kwargs`` "
159- "syntax. :meth:`vformat` does the work of breaking up the format string into "
160- "character data and replacement fields. It calls the various methods "
161- "described below."
156+ "as individual arguments using the ``*args`` and ``**kwargs`` syntax. :meth:"
157+ "`vformat` does the work of breaking up the format string into character data "
158+ "and replacement fields. It calls the various methods described below."
162159msgstr ""
163160
164161#: ../../library/string.rst:119
@@ -192,9 +189,9 @@ msgstr ""
192189msgid ""
193190"Given *field_name* as returned by :meth:`parse` (see above), convert it to "
194191"an object to be formatted. Returns a tuple (obj, used_key). The default "
195- "version takes strings of the form defined in :pep:`3101`, such as \" 0[name] "
196- "\" or \" label.title\" . *args* and *kwargs* are as passed in "
197- "to : meth:`vformat`. The return value *used_key* has the same meaning as the "
192+ "version takes strings of the form defined in :pep:`3101`, such as "
193+ "\" 0[name] \" or \" label.title\" . *args* and *kwargs* are as passed in to : "
194+ "meth:`vformat`. The return value *used_key* has the same meaning as the "
198195"*key* parameter to :meth:`get_value`."
199196msgstr ""
200197
@@ -208,9 +205,9 @@ msgstr ""
208205
209206#: ../../library/string.rst:152
210207msgid ""
211- "The *args* parameter is set to the list of positional arguments "
212- "to :meth: `vformat`, and the *kwargs* parameter is set to the dictionary of "
213- "keyword arguments."
208+ "The *args* parameter is set to the list of positional arguments to :meth: "
209+ "`vformat`, and the *kwargs* parameter is set to the dictionary of keyword "
210+ "arguments."
214211msgstr ""
215212
216213#: ../../library/string.rst:156
@@ -224,14 +221,14 @@ msgstr ""
224221msgid ""
225222"So for example, the field expression '0.name' would cause :meth:`get_value` "
226223"to be called with a *key* argument of 0. The ``name`` attribute will be "
227- "looked up after :meth:`get_value` returns by calling the built-"
228- "in :func: `getattr` function."
224+ "looked up after :meth:`get_value` returns by calling the built-in :func: "
225+ "`getattr` function."
229226msgstr ""
230227
231228#: ../../library/string.rst:165
232229msgid ""
233- "If the index or keyword refers to an item that does not exist, then "
234- "an :exc: `IndexError` or :exc:`KeyError` should be raised."
230+ "If the index or keyword refers to an item that does not exist, then an :exc: "
231+ "`IndexError` or :exc:`KeyError` should be raised."
235232msgstr ""
236233
237234#: ../../library/string.rst:170
@@ -240,9 +237,8 @@ msgid ""
240237"function is the set of all argument keys that were actually referred to in "
241238"the format string (integers for positional arguments, and strings for named "
242239"arguments), and a reference to the *args* and *kwargs* that was passed to "
243- "vformat. The set of unused args can be calculated from these "
244- "parameters. :meth:`check_unused_args` is assumed to raise an exception if "
245- "the check fails."
240+ "vformat. The set of unused args can be calculated from these parameters. :"
241+ "meth:`check_unused_args` is assumed to raise an exception if the check fails."
246242msgstr ""
247243
248244#: ../../library/string.rst:180
@@ -311,9 +307,9 @@ msgid ""
311307"not quote-delimited, it is not possible to specify arbitrary dictionary keys "
312308"(e.g., the strings ``'10'`` or ``':-]'``) within a format string. The "
313309"*arg_name* can be followed by any number of index or attribute expressions. "
314- "An expression of the form ``'.name'`` selects the named attribute "
315- "using : func:`getattr`, while an expression of the form ``'[index]'`` does an "
316- "index lookup using :meth:`~object.__getitem__`."
310+ "An expression of the form ``'.name'`` selects the named attribute using : "
311+ "func:`getattr`, while an expression of the form ``'[index]'`` does an index "
312+ "lookup using :meth:`~object.__getitem__`."
317313msgstr ""
318314
319315#: ../../library/string.rst:249
@@ -350,15 +346,15 @@ msgid ""
350346"the job of formatting a value is done by the :meth:`~object.__format__` "
351347"method of the value itself. However, in some cases it is desirable to force "
352348"a type to be formatted as a string, overriding its own definition of "
353- "formatting. By converting the value to a string before "
354- "calling :meth: `~object.__format__`, the normal formatting logic is bypassed."
349+ "formatting. By converting the value to a string before calling :meth: "
350+ "`~object.__format__`, the normal formatting logic is bypassed."
355351msgstr ""
356352
357353#: ../../library/string.rst:272
358354msgid ""
359- "Three conversion flags are currently supported: ``'!s'`` which "
360- "calls :func: `str` on the value, ``'!r'`` which calls :func:`repr` and ``'!"
361- "a'`` which calls :func:`ascii`."
355+ "Three conversion flags are currently supported: ``'!s'`` which calls :func: "
356+ "`str` on the value, ``'!r'`` which calls :func:`repr` and ``'!a'`` which "
357+ "calls :func:`ascii`."
362358msgstr ""
363359"目前支援三種轉換旗標:``'!s'`` 會對該值呼叫 :func:`str`,``'!r'`` 會對該值呼"
364360"叫 :func:`repr`,而 ``'!a'`` 則會對該值呼叫 :func:`ascii`。"
@@ -416,10 +412,10 @@ msgstr "格式規格 (Format Specification) 迷你語言"
416412#: ../../library/string.rst:305
417413msgid ""
418414"\" Format specifications\" are used within replacement fields contained "
419- "within a format string to define how individual values are presented "
420- "(see : ref:`formatstrings` and :ref:`f-strings`). They can also be passed "
421- "directly to the built-in :func:`format` function. Each formattable type may "
422- "define how the format specification is to be interpreted."
415+ "within a format string to define how individual values are presented (see : "
416+ "ref:`formatstrings` and :ref:`f-strings`). They can also be passed directly "
417+ "to the built-in :func:`format` function. Each formattable type may define "
418+ "how the format specification is to be interpreted."
423419msgstr ""
424420"「格式規格」在格式字串 (format string) 中包含的替換欄位中使用,以定義各個值如"
425421"何被呈現(請參考 :ref:`formatstrings` 和 :ref:`f-strings`\\ )。它們也能夠直"
@@ -458,10 +454,10 @@ msgid ""
458454"the :func:`format` function."
459455msgstr ""
460456"如果給定了一個有效的 *align* 值,則可以在它之前加一個 *fill* 字元,且該字元可"
461- "為任意字元,若不加的話預設為空格。使用\\ :ref:`格式字串 <f-strings>`\\ "
462- "或 : meth:`str.format` 時是無法在其中使用大括號(\" ``{``\" 或 \" ``}``\" )作為 "
463- "*fill* 字元的,但仍可透過巢狀替換欄位的方式插入大括號。此限制不影 "
464- "響 :func: `format` 函式。"
457+ "為任意字元,若不加的話預設為空格。使用\\ :ref:`格式字串 <f-strings>`\\ 或 : "
458+ "meth:`str.format` 時是無法在其中使用大括號(\" ``{``\" 或 \" ``}``\" )作為 "
459+ "*fill* 字元的,但仍可透過巢狀替換欄位的方式插入大括號。此限制不影響 :func: "
460+ "`format` 函式。"
465461
466462#: ../../library/string.rst:342
467463msgid "The meaning of the various alignment options is as follows:"
@@ -506,9 +502,9 @@ msgstr "``'='``"
506502msgid ""
507503"Forces the padding to be placed after the sign (if any) but before the "
508504"digits. This is used for printing fields in the form '+000000120'. This "
509- "alignment option is only valid for numeric types, "
510- "excluding :class: `complex`. It becomes the default for numbers when '0' "
511- "immediately precedes the field width."
505+ "alignment option is only valid for numeric types, excluding :class: "
506+ "`complex`. It becomes the default for numbers when '0' immediately precedes "
507+ "the field width."
512508msgstr ""
513509
514510#: ../../library/string.rst:366
@@ -605,8 +601,8 @@ msgid ""
605601"excluding :class:`complex`. This is equivalent to a *fill* character of "
606602"``'0'`` with an *alignment* type of ``'='``."
607603msgstr ""
608- "當未給予明確的對齊指示,在 *width* 欄位前面填入零 (``'0'``) 字元將會 "
609- "為 : class:`complex` 以外的數值型別啟用有符號察覺的零填充 (sign-aware zero-"
604+ "當未給予明確的對齊指示,在 *width* 欄位前面填入零 (``'0'``) 字元將會為 : "
605+ "class:`complex` 以外的數值型別啟用有符號察覺的零填充 (sign-aware zero-"
610606"padding)。這相當於使用 ``'0'`` 為 *fill* 字元且對齊類型為 ``'='``。"
611607
612608#: ../../library/string.rst:428
@@ -791,8 +787,8 @@ msgstr ""
791787
792788#: ../../library/string.rst:523
793789msgid ""
794- "The available presentation types for :class:`float` "
795- "and :class:`~decimal. Decimal` values are:"
790+ "The available presentation types for :class:`float` and :class:`~decimal. "
791+ "Decimal` values are:"
796792msgstr ""
797793
798794#: ../../library/string.rst:529
@@ -806,9 +802,9 @@ msgid ""
806802"exponent. The coefficient has one digit before and ``p`` digits after the "
807803"decimal point, for a total of ``p + 1`` significant digits. With no "
808804"precision given, uses a precision of ``6`` digits after the decimal point "
809- "for :class:`float`, and shows all coefficient digits "
810- "for :class:`~decimal. Decimal`. If ``p=0``, the decimal point is omitted "
811- "unless the ``#`` option is used."
805+ "for :class:`float`, and shows all coefficient digits for :class:`~decimal. "
806+ "Decimal`. If ``p=0``, the decimal point is omitted unless the ``#`` option "
807+ "is used."
812808msgstr ""
813809
814810#: ../../library/string.rst:540
@@ -872,12 +868,12 @@ msgstr ""
872868
873869#: ../../library/string.rst:575
874870msgid ""
875- "With no precision given, uses a precision of ``6`` significant digits "
876- "for : class:`float`. For :class:`~decimal.Decimal`, the coefficient of the "
877- "result is formed from the coefficient digits of the value; scientific "
878- "notation is used for values smaller than ``1e-6`` in absolute value and "
879- "values where the place value of the least significant digit is larger than "
880- "1, and fixed-point notation is used otherwise."
871+ "With no precision given, uses a precision of ``6`` significant digits for : "
872+ "class:`float`. For :class:`~decimal.Decimal`, the coefficient of the result "
873+ "is formed from the coefficient digits of the value; scientific notation is "
874+ "used for values smaller than ``1e-6`` in absolute value and values where the "
875+ "place value of the least significant digit is larger than 1, and fixed-point "
876+ "notation is used otherwise."
881877msgstr ""
882878
883879#: ../../library/string.rst:584
@@ -1099,8 +1095,8 @@ msgid ""
10991095"'+3.140000; -3.140000'\n"
11001096">>> '{: f}; {: f}'.format(3.14, -3.14) # show a space for positive numbers\n"
11011097"' 3.140000; -3.140000'\n"
1102- ">>> '{:-f}; {:-f}'.format(3.14, -3.14) # show only the minus -- same as "
1103- "'{: f}; {:f}'\n"
1098+ ">>> '{:-f}; {:-f}'.format(3.14, -3.14) # show only the minus -- same as '{: "
1099+ "f}; {:f}'\n"
11041100"'3.140000; -3.140000'"
11051101msgstr ""
11061102">>> '{:+f}; {:+f}'.format(3.14, -3.14) # 總會顯示\n"
@@ -1250,13 +1246,12 @@ msgstr "模板字串"
12501246
12511247#: ../../library/string.rst:784
12521248msgid ""
1253- "Template strings provide simpler string substitutions as described "
1254- "in :pep:`292`. A primary use case for template strings is for "
1255- "internationalization (i18n) since in that context, the simpler syntax and "
1256- "functionality makes it easier to translate than other built-in string "
1257- "formatting facilities in Python. As an example of a library built on "
1258- "template strings for i18n, see the `flufl.i18n <https://"
1259- "flufli18n.readthedocs.io/en/latest/>`_ package."
1249+ "Template strings provide simpler string substitutions as described in :pep:"
1250+ "`292`. A primary use case for template strings is for internationalization "
1251+ "(i18n) since in that context, the simpler syntax and functionality makes it "
1252+ "easier to translate than other built-in string formatting facilities in "
1253+ "Python. As an example of a library built on template strings for i18n, see "
1254+ "the `flufl.i18n <https://flufli18n.readthedocs.io/en/latest/>`_ package."
12601255msgstr ""
12611256"模板字串提供如 :pep:`292` 所述更簡單的字串替換。模板字串的主要用例是國際化 "
12621257"(i18n),因為在這種情況下,更簡單的語法和功能使得它比其他 Python 內建字串格式"
@@ -1292,8 +1287,8 @@ msgstr ""
12921287
12931288#: ../../library/string.rst:809
12941289msgid ""
1295- "Any other appearance of ``$`` in the string will result in "
1296- "a :exc: `ValueError` being raised."
1290+ "Any other appearance of ``$`` in the string will result in a :exc: "
1291+ "`ValueError` being raised."
12971292msgstr ""
12981293
12991294#: ../../library/string.rst:812
@@ -1346,9 +1341,10 @@ msgstr ""
13461341"匹配的括號,或者不是有效的 Python 識別字的佔位符號。"
13471342
13481343#: ../../library/string.rst:848
1344+ #, fuzzy
13491345msgid ""
1350- "Returns false if the template has invalid placeholders that will "
1351- "cause : meth:`substitute` to raise :exc:`ValueError`."
1346+ "Returns ``False`` if the template has invalid placeholders that will cause : "
1347+ "meth:`substitute` to raise :exc:`ValueError`."
13521348msgstr ""
13531349"如果模板有將導致 :meth:`substitute` 引發 :exc:`ValueError` 的無效佔位符號,就"
13541350"會回傳 false。"
@@ -1424,10 +1420,10 @@ msgstr ""
14241420msgid ""
14251421"*delimiter* -- This is the literal string describing a placeholder "
14261422"introducing delimiter. The default value is ``$``. Note that this should "
1427- "*not* be a regular expression, as the implementation will "
1428- "call :meth:`re. escape` on this string as needed. Note further that you "
1429- "cannot change the delimiter after class creation (i.e. a different delimiter "
1430- "must be set in the subclass's class namespace)."
1423+ "*not* be a regular expression, as the implementation will call :meth:`re. "
1424+ "escape` on this string as needed. Note further that you cannot change the "
1425+ "delimiter after class creation (i.e. a different delimiter must be set in "
1426+ "the subclass's class namespace)."
14311427msgstr ""
14321428"*delimiter* -- 這是描述引入左右定界符的文字字串。預設值是 ``$``。請注意這\\ *"
14331429"不是*\\ 正規表示式,因為實作會在需要時對這個字串呼叫 :meth:`re.escape`。也請"
@@ -1516,8 +1512,8 @@ msgid ""
15161512"The methods on this class will raise :exc:`ValueError` if the pattern "
15171513"matches the template without one of these named groups matching."
15181514msgstr ""
1519- "當此模式有匹配於模板但這些命名組中卻有任一個不匹配,此類別的方法將引 "
1520- "發 :exc: `ValueError`。"
1515+ "當此模式有匹配於模板但這些命名組中卻有任一個不匹配,此類別的方法將引發 :exc: "
1516+ "`ValueError`。"
15211517
15221518#: ../../library/string.rst:952
15231519msgid "Helper functions"
@@ -1526,11 +1522,11 @@ msgstr "輔助函式"
15261522#: ../../library/string.rst:956
15271523msgid ""
15281524"Split the argument into words using :meth:`str.split`, capitalize each word "
1529- "using :meth:`str.capitalize`, and join the capitalized words "
1530- "using :meth: `str.join`. If the optional second argument *sep* is absent or "
1531- "``None``, runs of whitespace characters are replaced by a single space and "
1532- "leading and trailing whitespace are removed, otherwise *sep* is used to "
1533- "split and join the words."
1525+ "using :meth:`str.capitalize`, and join the capitalized words using :meth: "
1526+ "`str.join`. If the optional second argument *sep* is absent or ``None``, "
1527+ "runs of whitespace characters are replaced by a single space and leading and "
1528+ "trailing whitespace are removed, otherwise *sep* is used to split and join "
1529+ "the words."
15341530msgstr ""
15351531"使用 :meth:`str.split` 將引數分割為字詞,使用 :meth:`str.capitalize` 將每個單"
15361532"字大寫,並使用 :meth:`str.join` 將大寫字詞連接起來。如果可選的第二引數 *sep* "
0 commit comments