@@ -2024,6 +2024,8 @@ msgid ""
2024
2024
"they were defined rather than alphabetically. (Contributed by Raymond "
2025
2025
"Hettinger in :issue:`24879`.)"
2026
2026
msgstr ""
2027
+ ":func:`help` 和 :mod:`pydoc` 现在将以具名元组字段被定义的顺序而非字母顺序列出它们。 (由 Raymond Hettinger"
2028
+ " 在 :issue:`24879` 中贡献。)"
2027
2029
2028
2030
#: ../../whatsnew/3.6.rst:1337
2029
2031
msgid "random"
@@ -2035,6 +2037,8 @@ msgid ""
2035
2037
"specified size from the given population with optional weights. (Contributed"
2036
2038
" by Raymond Hettinger in :issue:`18844`.)"
2037
2039
msgstr ""
2040
+ "新增 :func:`~random.choices` 函数用于从给定的总体中返回指定大小的元素列表并有可选权重。 (由 Raymond "
2041
+ "Hettinger 在 :issue:`18844` 中贡献。)"
2038
2042
2039
2043
#: ../../whatsnew/3.6.rst:1345 ../../whatsnew/3.6.rst:2025
2040
2044
msgid "re"
@@ -2047,20 +2051,27 @@ msgid ""
2047
2051
"``'PYTHON'``; ``'(?i)g(?-i:v)r'`` matches ``'GvR'`` and ``'gvr'``, but not "
2048
2052
"``'GVR'``. (Contributed by Serhiy Storchaka in :issue:`433028`.)"
2049
2053
msgstr ""
2054
+ "在正则表达式中增加了对修饰符区段的支持。 示例: ``'(?i:p)ython'`` 匹配 ``'python'`` 和 "
2055
+ "``'Python'``,但不匹配 ``'PYTHON'``;``'(?i)g(?-i:v)r'`` 匹配 ``'GvR'`` 和 "
2056
+ "``'gvr'``,但不匹配 ``'GVR'``。 (由 Serhiy Storchaka 在 :issue:`433028` 中贡献。)"
2050
2057
2051
2058
#: ../../whatsnew/3.6.rst:1352
2052
2059
msgid ""
2053
2060
"Match object groups can be accessed by ``__getitem__``, which is equivalent "
2054
2061
"to ``group()``. So ``mo['name']`` is now equivalent to "
2055
2062
"``mo.group('name')``. (Contributed by Eric Smith in :issue:`24454`.)"
2056
2063
msgstr ""
2064
+ "匹配对象分组可通过 ``__getitem__`` 来访问,这等价于 ``group()``。 因此 ``mo['name']`` 现在将等价于 "
2065
+ "``mo.group('name')``。 (由 Eric Smith 在 :issue:`24454` 中贡献。)"
2057
2066
2058
2067
#: ../../whatsnew/3.6.rst:1356
2059
2068
msgid ""
2060
2069
":class:`~re.Match` objects now support :meth:`index-like objects "
2061
2070
"<object.__index__>` as group indices. (Contributed by Jeroen Demeyer and "
2062
2071
"Xiang Zhang in :issue:`27177`.)"
2063
2072
msgstr ""
2073
+ ":class:`~re.Match` 对象现在支持将 :meth:`索引型对象 <object.__index__>` 作为分组索引。 (由 "
2074
+ "Jeroen Demeyer 和 Xiang Zhang 在 :issue:`27177` 中贡献。)"
2064
2075
2065
2076
#: ../../whatsnew/3.6.rst:1363
2066
2077
msgid "readline"
@@ -2072,6 +2083,8 @@ msgid ""
2072
2083
"addition of input to the history list. (Contributed by Tyler Crompton in "
2073
2084
":issue:`26870`.)"
2074
2085
msgstr ""
2086
+ "新增 :func:`~readline.set_auto_history` 来启用或禁用历史列表输入的自动添加。 (由 Tyler Crompton 在"
2087
+ " :issue:`26870` 中贡献。)"
2075
2088
2076
2089
#: ../../whatsnew/3.6.rst:1371
2077
2090
msgid "rlcompleter"
0 commit comments