File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 96.11%" , "updated_at" : " 2024-08-28T04 :47:05Z " }
1+ {"translation" : " 96.11%" , "updated_at" : " 2024-08-28T06 :47:54Z " }
Original file line number Diff line number Diff line change @@ -901,9 +901,8 @@ msgid ""
901901" in a :exc:`DeprecationWarning` and will eventually become a "
902902":exc:`SyntaxError`. See :ref:`the-backslash-plague`."
903903msgstr ""
904- "在这个例子中需要 ``r`` 前缀,使字面为原始字符串字面,因为普通的“加工”字符串字面中的转义序列不能被 Python 识别为正则表达式,导致 "
905- ":exc:`DeprecationWarning` 并最终产生 :exc:`SyntaxError`。 请参阅 :ref:`the-backslash-"
906- "plague`。"
904+ "在这个例子中, ``r`` 前缀用于将字面量标记为原始字符串字面量,这是必要的。因为在普通的“加工”字符串字面量中,如果出现 Python 无法识别的转义序列(尽管这个序列在正则表达式中是合法的),会引发一个 :exc:`DeprecationWarning` ,并且在未来会变成 :exc:`SyntaxError`。 请参阅 :ref:`the-backslash-plague`。\n"
905+ "> 译注:所谓“加工”字符串(cooked string),就是指会解释转义序列的普通字符串,与之相对的是“不加工”的原始字符串(raw string)。"
907906
908907#: ../../howto/regex.rst:479
909908msgid ""
@@ -912,8 +911,9 @@ msgid ""
912911"sequence of :ref:`match object <match-objects>` instances as an "
913912":term:`iterator`::"
914913msgstr ""
915- ":meth:`~re.Pattern.findall` 必须先创建整个列表才能返回结果。 :meth:`~re.Pattern.finditer` "
916- "方法将一个 :ref:`匹配对象 <match-objects>` 的序列返回为一个 :term:`iterator` ::"
914+ ":meth:`~re.Pattern.findall` 方法必须在返回结果前生成一个完整的匹配列表。而 "
915+ ":meth:`~re.Pattern.finditer` 方法则是以迭代器 :term:`iterator` 的形式返回一系列 :ref:`匹配对象 "
916+ "<match-objects>` 实例。"
917917
918918#: ../../howto/regex.rst:495
919919msgid "Module-Level Functions"
You can’t perform that action at this time.
0 commit comments