@@ -843,75 +843,100 @@ msgstr ""
843
843
844
844
#: ../../library/string.rst:595
845
845
msgid "Format examples"
846
- msgstr ""
846
+ msgstr "格式範例 "
847
847
848
848
#: ../../library/string.rst:597
849
849
msgid ""
850
850
"This section contains examples of the :meth:`str.format` syntax and "
851
851
"comparison with the old ``%``-formatting."
852
- msgstr ""
852
+ msgstr "本節包含 :meth:`str.format` 語法以及與舊式 ``%`` 格式的比較。 "
853
853
854
854
#: ../../library/string.rst:600
855
855
msgid ""
856
856
"In most of the cases the syntax is similar to the old ``%``-formatting, with "
857
857
"the addition of the ``{}`` and with ``:`` used instead of ``%``. For "
858
858
"example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``."
859
- msgstr ""
859
+ msgstr "此語法在大多情況下與舊式的 ``%`` 格式類似,只是增加了 ``{}`` 和 ``:`` 來取代 ``%``。"
860
+ "例如, ``'%03.2f'`` 可以改寫為 ``'{:03.2f}'`` 。"
860
861
861
862
#: ../../library/string.rst:604
862
863
msgid ""
863
864
"The new format syntax also supports new and different options, shown in the "
864
865
"following examples."
865
- msgstr ""
866
+ msgstr "新的語法還支援新的選項,將在以下的範例中說明。 "
866
867
867
868
#: ../../library/string.rst:607
868
869
msgid "Accessing arguments by position::"
869
- msgstr ""
870
+ msgstr "按位置取得引數:\n"
871
+ "\n"
872
+ "::"
870
873
871
874
#: ../../library/string.rst:620
872
875
msgid "Accessing arguments by name::"
873
- msgstr ""
876
+ msgstr "按名稱取得引數:\n"
877
+ "\n"
878
+ "::"
874
879
875
880
#: ../../library/string.rst:628
876
881
msgid "Accessing arguments' attributes::"
877
- msgstr ""
882
+ msgstr "取得引數的屬性:\n"
883
+ "\n"
884
+ "::"
878
885
879
886
#: ../../library/string.rst:643
880
887
msgid "Accessing arguments' items::"
881
- msgstr ""
888
+ msgstr "取得引數的內容:\n"
889
+ "\n"
890
+ "::"
882
891
883
892
#: ../../library/string.rst:649
884
893
msgid "Replacing ``%s`` and ``%r``::"
885
- msgstr ""
894
+ msgstr "替換 ``%s`` 和 ``%r``:\n"
895
+ "\n"
896
+ "::"
886
897
887
898
#: ../../library/string.rst:654
888
899
msgid "Aligning the text and specifying a width::"
889
- msgstr ""
900
+ msgstr "對齊文字以及指定寬度:\n"
901
+ "\n"
902
+ "::"
890
903
891
904
#: ../../library/string.rst:665
892
905
msgid "Replacing ``%+f``, ``%-f``, and ``% f`` and specifying a sign::"
893
- msgstr ""
906
+ msgstr "替換 ``%+f``,``%-f`` 和 ``% f`` 以及指定正負號:\n"
907
+ "\n"
908
+ "::"
894
909
895
910
#: ../../library/string.rst:674
896
911
msgid ""
897
912
"Replacing ``%x`` and ``%o`` and converting the value to different bases::"
898
- msgstr ""
913
+ msgstr "替換 ``%x`` 或 ``%o`` 用來根據不同的進制轉換其值:\n"
914
+ "\n"
915
+ "::"
899
916
900
917
#: ../../library/string.rst:683
901
918
msgid "Using the comma as a thousands separator::"
902
- msgstr ""
919
+ msgstr "使用逗號作為千位分隔符:\n"
920
+ "\n"
921
+ "::"
903
922
904
923
#: ../../library/string.rst:688
905
924
msgid "Expressing a percentage::"
906
- msgstr ""
925
+ msgstr "表示為百分比:\n"
926
+ "\n"
927
+ "::"
907
928
908
929
#: ../../library/string.rst:695
909
930
msgid "Using type-specific formatting::"
910
- msgstr ""
931
+ msgstr "作為特定類型格式:\n"
932
+ "\n"
933
+ "::"
911
934
912
935
#: ../../library/string.rst:702
913
936
msgid "Nesting arguments and more complex examples::"
914
- msgstr ""
937
+ msgstr "巢狀引數及更多複雜範例:\n"
938
+ "\n"
939
+ "::"
915
940
916
941
#: ../../library/string.rst:736
917
942
msgid "Template strings"
0 commit comments