Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c3775f

Browse files
committed
[po] auto sync bot
1 parent 0732c79 commit 4c3775f

1 file changed

Lines changed: 26 additions & 18 deletions

File tree

library/string.po

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -815,19 +815,23 @@ msgid ""
815815
" trailing zeros are removed from the significand, and the decimal point is "
816816
"also removed if there are no remaining digits following it."
817817
msgstr ""
818+
"准确的规则如下:假设使用表示类型 ``'e'`` 和精度 ``p-1`` 进行格式化的结果具有指数值 ``exp``。 则如果 ``-4 <= exp "
819+
"< p``,该数字将使用表示类型 ``'f'`` 和精度 ``p-1-exp`` 进行格式化。 否则的话,该数字将使用表示类型 ``'e'`` 和精度 "
820+
"``p-1`` 进行格式化。 在两种情况下,都会从有效数字中移除无意义的末尾零,如果小数点之后没有数字则小数点也会被移除。"
818821

819822
#: ../../library/string.rst:513
820823
msgid ""
821824
"Positive and negative infinity, positive and negative zero, and nans, are "
822825
"formatted as ``inf``, ``-inf``, ``0``, ``-0`` and ``nan`` respectively, "
823826
"regardless of the precision."
824827
msgstr ""
828+
"正负无穷,正负零和 nan 会分别被格式化为 ``inf``, ``-inf``, ``0``, ``-0`` 和 ``nan``,无论精度如何设定。"
825829

826830
#: ../../library/string.rst:518
827831
msgid ""
828832
"A precision of ``0`` is treated as equivalent to a precision of ``1``. The "
829833
"default precision is ``6``."
830-
msgstr ""
834+
msgstr "精度 ``0`` 会被视为等同于精度 ``1``。 默认精度为 ``6``。"
831835

832836
#: ../../library/string.rst:521
833837
msgid "``'G'``"
@@ -837,13 +841,13 @@ msgstr "``'G'``"
837841
msgid ""
838842
"General format. Same as ``'g'`` except switches to ``'E'`` if the number "
839843
"gets too large. The representations of infinity and NaN are uppercased, too."
840-
msgstr ""
844+
msgstr "常规格式。 类似于 ``'g'``,不同之处在于当数值非常大时会切换为 ``'E'``。 无穷与 NaN 也会表示为大写形式。"
841845

842846
#: ../../library/string.rst:525
843847
msgid ""
844848
"Number. This is the same as ``'g'``, except that it uses the current locale "
845849
"setting to insert the appropriate number separator characters."
846-
msgstr ""
850+
msgstr "数字。 这与 ``'g'`` 相似,不同之处在于它会使用当前区域设置来插入适当的数字分隔字符。"
847851

848852
#: ../../library/string.rst:529
849853
msgid "``'%'``"
@@ -853,7 +857,7 @@ msgstr "``'%'``"
853857
msgid ""
854858
"Percentage. Multiplies the number by 100 and displays in fixed (``'f'``) "
855859
"format, followed by a percent sign."
856-
msgstr ""
860+
msgstr "百分比。 将数字乘以 100 并显示为定点 (``'f'``) 格式,后面带一个百分号。"
857861

858862
#: ../../library/string.rst:532
859863
msgid ""
@@ -862,74 +866,78 @@ msgid ""
862866
"needed to represent the particular value. The overall effect is to match the"
863867
" output of :func:`str` as altered by the other format modifiers."
864868
msgstr ""
869+
"类似于 ``'g'``,不同之处在于当使用定点表示法时,小数点后将至少显示一位。 默认精度与表示给定值所需的精度一样。 "
870+
"整体效果为与其他格式修饰符所调整的 :func:`str` 输出保持一致。"
865871

866872
#: ../../library/string.rst:544
867873
msgid "Format examples"
868-
msgstr ""
874+
msgstr "格式示例"
869875

870876
#: ../../library/string.rst:546
871877
msgid ""
872878
"This section contains examples of the :meth:`str.format` syntax and "
873879
"comparison with the old ``%``-formatting."
874-
msgstr ""
880+
msgstr "本节包含 :meth:`str.format` 语法的示例以及与旧式 ``%`` 格式化的比较。"
875881

876882
#: ../../library/string.rst:549
877883
msgid ""
878884
"In most of the cases the syntax is similar to the old ``%``-formatting, with"
879885
" the addition of the ``{}`` and with ``:`` used instead of ``%``. For "
880886
"example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``."
881887
msgstr ""
888+
"该语法在大多数情况下与旧式的 ``%`` 格式化类似,只是增加了 ``{}`` 和 ``:`` 来取代 ``%``。 例如,,``'%03.2f'`` "
889+
"可以被改写为 ``'{:03.2f}'``。"
882890

883891
#: ../../library/string.rst:553
884892
msgid ""
885893
"The new format syntax also supports new and different options, shown in the "
886894
"following examples."
887-
msgstr ""
895+
msgstr "新的格式语法还支持新增的不同选项,将在以下示例中说明。"
888896

889897
#: ../../library/string.rst:556
890898
msgid "Accessing arguments by position::"
891-
msgstr ""
899+
msgstr "按位置访问参数::"
892900

893901
#: ../../library/string.rst:569
894902
msgid "Accessing arguments by name::"
895-
msgstr ""
903+
msgstr "按名称访问参数::"
896904

897905
#: ../../library/string.rst:577
898906
msgid "Accessing arguments' attributes::"
899-
msgstr ""
907+
msgstr "访问参数的属性::"
900908

901909
#: ../../library/string.rst:592
902910
msgid "Accessing arguments' items::"
903-
msgstr ""
911+
msgstr "访问参数的项::"
904912

905913
#: ../../library/string.rst:598
906914
msgid "Replacing ``%s`` and ``%r``::"
907-
msgstr ""
915+
msgstr "替代 ``%s`` 和 ``%r``::"
908916

909917
#: ../../library/string.rst:603
910918
msgid "Aligning the text and specifying a width::"
911-
msgstr ""
919+
msgstr "对齐文本以及指定宽度::"
912920

913921
#: ../../library/string.rst:614
914922
msgid "Replacing ``%+f``, ``%-f``, and ``% f`` and specifying a sign::"
915-
msgstr ""
923+
msgstr "替代 ``%+f``, ``%-f`` 和 ``% f`` 以及指定正负号::"
916924

917925
#: ../../library/string.rst:623
918926
msgid ""
919927
"Replacing ``%x`` and ``%o`` and converting the value to different bases::"
920-
msgstr ""
928+
msgstr "替代 ``%x`` 和 ``%o`` 以及转换基于不同进位制的值::"
921929

922930
#: ../../library/string.rst:632
923931
msgid "Using the comma as a thousands separator::"
924-
msgstr ""
932+
msgstr "使用逗号作为千位分隔符::"
925933

926934
#: ../../library/string.rst:637
927935
msgid "Expressing a percentage::"
928-
msgstr ""
936+
msgstr "表示为百分数::"
929937

930938
#: ../../library/string.rst:644
931939
msgid "Using type-specific formatting::"
932-
msgstr ""
940+
msgstr "使用特定类型的专属格式化::"
933941

934942
#: ../../library/string.rst:651
935943
msgid "Nesting arguments and more complex examples::"

0 commit comments

Comments
 (0)