6
6
msgstr ""
7
7
"Project-Id-Version : Python 3.13\n "
8
8
"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 "
10
10
"PO-Revision-Date : 2024-03-10 15:57+0800\n "
11
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -44,9 +44,9 @@ msgstr "此模組中定義的常數為:"
44
44
45
45
#: ../../library/string.rst:26
46
46
msgid ""
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."
50
50
msgstr ""
51
51
"下文描述的 :const:`ascii_lowercase` 和 :const:`ascii_uppercase` 常數的串接,"
52
52
"該值不依賴於區域設定。"
@@ -88,19 +88,17 @@ msgstr ""
88
88
#: ../../library/string.rst:65
89
89
msgid ""
90
90
"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`."
94
93
msgstr ""
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` 的組合。"
98
96
99
97
#: ../../library/string.rst:71
100
98
msgid ""
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)>`)."
104
102
msgstr ""
105
103
106
104
#: ../../library/string.rst:78
@@ -138,11 +136,11 @@ msgstr ":class:`Formatter` 類別有以下的公開方法:"
138
136
#: ../../library/string.rst:101
139
137
msgid ""
140
138
"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`."
143
141
msgstr ""
144
- "主要的 API 方法。它接收一個格式字串及一組任意的位置引數與關鍵字引數,是呼 "
145
- "叫 : meth:`vformat` 的包裝器 (wrapper)。"
142
+ "主要的 API 方法。它接收一個格式字串及一組任意的位置引數與關鍵字引數,是呼叫 : "
143
+ "meth:`vformat` 的包裝器 (wrapper)。"
146
144
147
145
#: ../../library/string.rst:105
148
146
msgid ""
@@ -155,10 +153,9 @@ msgid ""
155
153
"This function does the actual work of formatting. It is exposed as a "
156
154
"separate function for cases where you want to pass in a predefined "
157
155
"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."
162
159
msgstr ""
163
160
164
161
#: ../../library/string.rst:119
@@ -192,9 +189,9 @@ msgstr ""
192
189
msgid ""
193
190
"Given *field_name* as returned by :meth:`parse` (see above), convert it to "
194
191
"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 "
198
195
"*key* parameter to :meth:`get_value`."
199
196
msgstr ""
200
197
@@ -208,9 +205,9 @@ msgstr ""
208
205
209
206
#: ../../library/string.rst:152
210
207
msgid ""
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."
214
211
msgstr ""
215
212
216
213
#: ../../library/string.rst:156
@@ -224,14 +221,14 @@ msgstr ""
224
221
msgid ""
225
222
"So for example, the field expression '0.name' would cause :meth:`get_value` "
226
223
"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."
229
226
msgstr ""
230
227
231
228
#: ../../library/string.rst:165
232
229
msgid ""
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."
235
232
msgstr ""
236
233
237
234
#: ../../library/string.rst:170
@@ -240,9 +237,8 @@ msgid ""
240
237
"function is the set of all argument keys that were actually referred to in "
241
238
"the format string (integers for positional arguments, and strings for named "
242
239
"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."
246
242
msgstr ""
247
243
248
244
#: ../../library/string.rst:180
@@ -311,9 +307,9 @@ msgid ""
311
307
"not quote-delimited, it is not possible to specify arbitrary dictionary keys "
312
308
"(e.g., the strings ``'10'`` or ``':-]'``) within a format string. The "
313
309
"*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__`."
317
313
msgstr ""
318
314
319
315
#: ../../library/string.rst:249
@@ -350,15 +346,15 @@ msgid ""
350
346
"the job of formatting a value is done by the :meth:`~object.__format__` "
351
347
"method of the value itself. However, in some cases it is desirable to force "
352
348
"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."
355
351
msgstr ""
356
352
357
353
#: ../../library/string.rst:272
358
354
msgid ""
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`."
362
358
msgstr ""
363
359
"目前支援三種轉換旗標:``'!s'`` 會對該值呼叫 :func:`str`,``'!r'`` 會對該值呼"
364
360
"叫 :func:`repr`,而 ``'!a'`` 則會對該值呼叫 :func:`ascii`。"
@@ -416,10 +412,10 @@ msgstr "格式規格 (Format Specification) 迷你語言"
416
412
#: ../../library/string.rst:305
417
413
msgid ""
418
414
"\" 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."
423
419
msgstr ""
424
420
"「格式規格」在格式字串 (format string) 中包含的替換欄位中使用,以定義各個值如"
425
421
"何被呈現(請參考 :ref:`formatstrings` 和 :ref:`f-strings`\\ )。它們也能夠直"
@@ -458,10 +454,10 @@ msgid ""
458
454
"the :func:`format` function."
459
455
msgstr ""
460
456
"如果給定了一個有效的 *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` 函式。"
465
461
466
462
#: ../../library/string.rst:342
467
463
msgid "The meaning of the various alignment options is as follows:"
@@ -506,9 +502,9 @@ msgstr "``'='``"
506
502
msgid ""
507
503
"Forces the padding to be placed after the sign (if any) but before the "
508
504
"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."
512
508
msgstr ""
513
509
514
510
#: ../../library/string.rst:366
@@ -605,8 +601,8 @@ msgid ""
605
601
"excluding :class:`complex`. This is equivalent to a *fill* character of "
606
602
"``'0'`` with an *alignment* type of ``'='``."
607
603
msgstr ""
608
- "當未給予明確的對齊指示,在 *width* 欄位前面填入零 (``'0'``) 字元將會 "
609
- "為 : class:`complex` 以外的數值型別啟用有符號察覺的零填充 (sign-aware zero-"
604
+ "當未給予明確的對齊指示,在 *width* 欄位前面填入零 (``'0'``) 字元將會為 : "
605
+ "class:`complex` 以外的數值型別啟用有符號察覺的零填充 (sign-aware zero-"
610
606
"padding)。這相當於使用 ``'0'`` 為 *fill* 字元且對齊類型為 ``'='``。"
611
607
612
608
#: ../../library/string.rst:428
@@ -791,8 +787,8 @@ msgstr ""
791
787
792
788
#: ../../library/string.rst:523
793
789
msgid ""
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:"
796
792
msgstr ""
797
793
798
794
#: ../../library/string.rst:529
@@ -806,9 +802,9 @@ msgid ""
806
802
"exponent. The coefficient has one digit before and ``p`` digits after the "
807
803
"decimal point, for a total of ``p + 1`` significant digits. With no "
808
804
"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."
812
808
msgstr ""
813
809
814
810
#: ../../library/string.rst:540
@@ -872,12 +868,12 @@ msgstr ""
872
868
873
869
#: ../../library/string.rst:575
874
870
msgid ""
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."
881
877
msgstr ""
882
878
883
879
#: ../../library/string.rst:584
@@ -1099,8 +1095,8 @@ msgid ""
1099
1095
"'+3.140000; -3.140000'\n"
1100
1096
">>> '{: f}; {: f}'.format(3.14, -3.14) # show a space for positive numbers\n"
1101
1097
"' 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"
1104
1100
"'3.140000; -3.140000'"
1105
1101
msgstr ""
1106
1102
">>> '{:+f}; {:+f}'.format(3.14, -3.14) # 總會顯示\n"
@@ -1250,13 +1246,12 @@ msgstr "模板字串"
1250
1246
1251
1247
#: ../../library/string.rst:784
1252
1248
msgid ""
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."
1260
1255
msgstr ""
1261
1256
"模板字串提供如 :pep:`292` 所述更簡單的字串替換。模板字串的主要用例是國際化 "
1262
1257
"(i18n),因為在這種情況下,更簡單的語法和功能使得它比其他 Python 內建字串格式"
@@ -1292,8 +1287,8 @@ msgstr ""
1292
1287
1293
1288
#: ../../library/string.rst:809
1294
1289
msgid ""
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."
1297
1292
msgstr ""
1298
1293
1299
1294
#: ../../library/string.rst:812
@@ -1346,9 +1341,10 @@ msgstr ""
1346
1341
"匹配的括號,或者不是有效的 Python 識別字的佔位符號。"
1347
1342
1348
1343
#: ../../library/string.rst:848
1344
+ #, fuzzy
1349
1345
msgid ""
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`."
1352
1348
msgstr ""
1353
1349
"如果模板有將導致 :meth:`substitute` 引發 :exc:`ValueError` 的無效佔位符號,就"
1354
1350
"會回傳 false。"
@@ -1424,10 +1420,10 @@ msgstr ""
1424
1420
msgid ""
1425
1421
"*delimiter* -- This is the literal string describing a placeholder "
1426
1422
"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)."
1431
1427
msgstr ""
1432
1428
"*delimiter* -- 這是描述引入左右定界符的文字字串。預設值是 ``$``。請注意這\\ *"
1433
1429
"不是*\\ 正規表示式,因為實作會在需要時對這個字串呼叫 :meth:`re.escape`。也請"
@@ -1516,8 +1512,8 @@ msgid ""
1516
1512
"The methods on this class will raise :exc:`ValueError` if the pattern "
1517
1513
"matches the template without one of these named groups matching."
1518
1514
msgstr ""
1519
- "當此模式有匹配於模板但這些命名組中卻有任一個不匹配,此類別的方法將引 "
1520
- "發 :exc: `ValueError`。"
1515
+ "當此模式有匹配於模板但這些命名組中卻有任一個不匹配,此類別的方法將引發 :exc: "
1516
+ "`ValueError`。"
1521
1517
1522
1518
#: ../../library/string.rst:952
1523
1519
msgid "Helper functions"
@@ -1526,11 +1522,11 @@ msgstr "輔助函式"
1526
1522
#: ../../library/string.rst:956
1527
1523
msgid ""
1528
1524
"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."
1534
1530
msgstr ""
1535
1531
"使用 :meth:`str.split` 將引數分割為字詞,使用 :meth:`str.capitalize` 將每個單"
1536
1532
"字大寫,並使用 :meth:`str.join` 將大寫字詞連接起來。如果可選的第二引數 *sep* "
0 commit comments