1- # SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2022, Python Software Foundation
1+ # Copyright (C) 2001-2024, Python Software Foundation
32# This file is distributed under the same license as the Python package.
43#
54# Translators:
@@ -64,15 +63,15 @@ msgid ""
6463"The uppercase letters ``'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``. This value is not "
6564"locale-dependent and will not change."
6665msgstr ""
67- "大寫字母 ``’ ABCDEFGHIJKLMNOPQRSTUVWXYZ’ ``。 此值與地區設定無關且不會改變。"
66+ "大寫字母 ``' ABCDEFGHIJKLMNOPQRSTUVWXYZ' ``。此值與地區設定無關且不會改變。"
6867
6968#: ../../library/string.rst:44
7069msgid "The string ``'0123456789'``."
71- msgstr "字串 ``’ 0123456789’ ``。"
70+ msgstr "字串 ``' 0123456789' ``。"
7271
7372#: ../../library/string.rst:49
7473msgid "The string ``'0123456789abcdefABCDEF'``."
75- msgstr "字串 ``’ 0123456789abcdefABCDEF’ ``。"
74+ msgstr "字串 ``' 0123456789abcdefABCDEF' ``。"
7675
7776#: ../../library/string.rst:54
7877msgid "The string ``'01234567'``."
@@ -83,7 +82,7 @@ msgid ""
8382"String of ASCII characters which are considered punctuation characters in "
8483"the ``C`` locale: ``!\" #$%&'()*+,-./:;<=>?@[\\ ]^_`{|}~``."
8584msgstr ""
86- "在 ``C`` 語言中被視為標點符號的 ASCII 字元的字串: ``!” #$%&’ ()*+,-./:;<=>?"
85+ "在 ``C`` 語言中被視為標點符號的 ASCII 字元的字串:``!\" #$%&' ()*+,-./:;<=>?"
8786"@[\\ ]^_`{|}~``。"
8887
8988#: ../../library/string.rst:64
@@ -545,7 +544,7 @@ msgstr ""
545544
546545#: ../../library/string.rst:368 ../../library/string.rst:382
547546msgid "space"
548- msgstr ""
547+ msgstr "空格 "
549548
550549#: ../../library/string.rst:382
551550msgid ""
@@ -579,16 +578,12 @@ msgid ""
579578msgstr ""
580579
581580#: ../../library/string.rst:412
582- #, fuzzy
583581msgid ""
584582"The ``','`` option signals the use of a comma for a thousands separator for "
585583"floating-point presentation types and for integer presentation type ``'d'``. "
586584"For other presentation types, this option is an error. For a locale aware "
587585"separator, use the ``'n'`` integer presentation type instead."
588586msgstr ""
589- "``'_'`` 選項表示對於浮點表示型別和整數表示型別 ``'d'`` 使用底線作為千位分隔符"
590- "號。對於整數表示型別 ``'b'``,``'o'``,``'x'`` 和 ``'X'``,每 4 位數字會插入"
591- "底線。對於其他表示型別,指定此選項會出錯。"
592587
593588#: ../../library/string.rst:418
594589msgid "Added the ``','`` option (see also :pep:`378`)."
@@ -679,7 +674,7 @@ msgstr "None"
679674
680675#: ../../library/string.rst:464
681676msgid "The same as ``'s'``."
682- msgstr ""
677+ msgstr "與 ``'s'`` 相同。 "
683678
684679#: ../../library/string.rst:467
685680msgid "The available integer presentation types are:"
@@ -754,7 +749,7 @@ msgstr ""
754749
755750#: ../../library/string.rst:493
756751msgid "The same as ``'d'``."
757- msgstr ""
752+ msgstr "與 ``'d'`` 相同。 "
758753
759754#: ../../library/string.rst:496
760755msgid ""
@@ -973,6 +968,16 @@ msgid ""
973968"repeated\n"
974969"'abracadabra'"
975970msgstr ""
971+ ">>> '{0}, {1}, {2}'.format('a', 'b', 'c')\n"
972+ "'a, b, c'\n"
973+ ">>> '{}, {}, {}'.format('a', 'b', 'c') # 3.1+ only\n"
974+ "'a, b, c'\n"
975+ ">>> '{2}, {1}, {0}'.format('a', 'b', 'c')\n"
976+ "'c, b, a'\n"
977+ ">>> '{2}, {1}, {0}'.format(*'abc') # 解包引數序列\n"
978+ "'c, b, a'\n"
979+ ">>> '{0}{1}{0}'.format('abra', 'cad') # 引數索引可以重複\n"
980+ "'abracadabra'"
976981
977982#: ../../library/string.rst:637
978983msgid "Accessing arguments by name::"
@@ -1019,6 +1024,9 @@ msgid ""
10191024">>> 'X: {0[0]}; Y: {0[1]}'.format(coord)\n"
10201025"'X: 3; Y: 5'"
10211026msgstr ""
1027+ ">>> coord = (3, 5)\n"
1028+ ">>> 'X: {0[0]}; Y: {0[1]}'.format(coord)\n"
1029+ "'X: 3; Y: 5'"
10221030
10231031#: ../../library/string.rst:666
10241032msgid "Replacing ``%s`` and ``%r``::"
@@ -1064,6 +1072,13 @@ msgid ""
10641072"f}; {:f}'\n"
10651073"'3.140000; -3.140000'"
10661074msgstr ""
1075+ ">>> '{:+f}; {:+f}'.format(3.14, -3.14) # 總會顯示\n"
1076+ "'+3.140000; -3.140000'\n"
1077+ ">>> '{: f}; {: f}'.format(3.14, -3.14) # 若為正數則顯示空格\n"
1078+ "' 3.140000; -3.140000'\n"
1079+ ">>> '{:-f}; {:-f}'.format(3.14, -3.14) # 只顯示負號 -- 與 '{:f}; {:f}' 相"
1080+ "同\n"
1081+ "'3.140000; -3.140000'"
10671082
10681083#: ../../library/string.rst:691
10691084msgid ""
0 commit comments