File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ msgstr ""
4646msgid ""
4747"The member variables to use in these generated methods are defined using "
4848":pep:`526` type annotations. For example, this code::"
49- msgstr ""
49+ msgstr "在这些生成的方法中使用的成员变量是使用 :pep:`526` 类型标注来定义的。 例如以下代码:: "
5050
5151#: ../../library/dataclasses.rst:34
5252msgid "will add, among other things, a :meth:`__init__` that looks like::"
Original file line number Diff line number Diff line change @@ -577,6 +577,10 @@ msgid ""
577577"of these conversions only if a digit follows it. In addition, for ``'g'`` "
578578"and ``'G'`` conversions, trailing zeros are not removed from the result."
579579msgstr ""
580+ "``'#'`` 选项可让“替代形式”被用于执行转换。 替代形式会针对不同的类型分别定义。 此选项仅适用于整数、浮点数和复数类型。 "
581+ "对于整数类型,当使用二进制、八进制或十六进制输出时,此选项会为输出值分别添加相应的 ``'0b'``, ``'0o'``, ``'0x'`` 或 "
582+ "``'0X'`` 前缀。 对于浮点数和复数类型,替代形式会使得转换结果总是包含小数点符号,即使其不带小数部分。 "
583+ "通常只有在带有小数部分的情况下,此类转换的结果中才会出现小数点符号。 此外,对于 ``'g'`` 和 ``'G'`` 转换,末尾的零不会从结果中被移除。"
580584
581585#: ../../library/string.rst:399
582586msgid ""
@@ -724,6 +728,8 @@ msgid ""
724728"digits above 9. In case ``'#'`` is specified, the prefix ``'0x'`` will be "
725729"upper-cased to ``'0X'`` as well."
726730msgstr ""
731+ "十六进制格式。 输出以 16 为基数的数字,使用大写字母表示 9 以上的数码。 在指定 ``'#'`` 的情况下,前缀 ``'0x'`` "
732+ "也将被转为大写形式 ``'0X'``。"
727733
728734#: ../../library/string.rst:469 ../../library/string.rst:553
729735msgid "``'n'``"
You can’t perform that action at this time.
0 commit comments