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

Skip to content

Commit 1a147cc

Browse files
[po] auto sync
1 parent f2213b5 commit 1a147cc

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "96.11%", "updated_at": "2024-08-25T18:47:05Z"}
1+
{"translation": "96.11%", "updated_at": "2024-08-27T07:47:04Z"}

howto/regex.po

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ msgid ""
9292
"be slower than an elaborate regular expression, it will also probably be "
9393
"more understandable."
9494
msgstr ""
95-
"正则表达式语言相对较小且受限,因此并非所有的字符串处理任务都能用正则表达式完成。有些任务尽管**可以**用正则表达式来完成,但表达式会变得非常复杂。在这些情况下,最好通过编写"
95+
"正则表达式语言相对较小且受限,因此并非所有的字符串处理任务都能用正则表达式完成。有些任务尽管*可以*用正则表达式来完成,但表达式会变得非常复杂。在这些情况下,最好通过编写"
9696
" Python 代码来进行处理。也许 Python 代码的运行速度会比精心设计的正则表达式慢,但通常更容易理解。"
9797

9898
#: ../../howto/regex.rst:51
@@ -474,10 +474,9 @@ msgid ""
474474
"similar example, ``ca+t`` will match ``'cat'`` (1 ``'a'``), ``'caaat'`` (3 "
475475
"``'a'``\\ s), but won't match ``'ct'``."
476476
msgstr ""
477-
"正则表达式中另一个常用的重复元字符是 ``+``,它表示匹配一次或更多次。要特别注意 ``*`` 与 ``+`` "
478-
"之间的区别。``*``匹配零次或更多次,也就是说它所重复的部分有可能是根本不存在的。而 ``+`` 则要求至少出现一次。举一个类似的例子,正则 "
479-
"```ca+t``可以匹配 ``'cat'`` ( 1 个 ``'a'``)或 ``'caaat'`` ( 3 个 ``'a'``),但不能匹配 "
480-
"``'ct'`` 。"
477+
"正则表达式中另一个常用的重复元字符是 ``+``,它表示匹配一次或更多次。要特别注意 ``*`` 与 ``+`` 之间的区别。``*`` "
478+
"匹配零次或更多次,也就是说它所重复的部分有可能是根本不存在的。而 ``+`` 则要求至少出现一次。举一个类似的例子,正则 ``ca+t`` 可以匹配 "
479+
"``'cat'`` ( 1 个 ``'a'``)或 ``'caaat'`` ( 3 个 ``'a'`` ),但不能匹配 ``'ct'`` 。"
481480

482481
#: ../../howto/regex.rst:233
483482
msgid ""
@@ -571,7 +570,7 @@ msgid ""
571570
"simply a C extension module included with Python, just like the "
572571
":mod:`socket` or :mod:`zlib` modules."
573572
msgstr ""
574-
"在这个例子中,正则以字符串形式传递给了 :func:`re.compile` 函数。之所将正则作为字符串处理,是因为正则表达式并非 Python "
573+
"在这个例子中,正则以字符串形式传递给了 :func:`re.compile` 。之所将正则作为字符串处理,是因为正则表达式并非 Python "
575574
"语言的核心组成部分,也没有为其创建专门的语法。 "
576575
"(有些应用程序根本不需要正则,因此也就没必要将它纳入语言核心而使语言规范变得臃肿。)实际上,:mod:`re` 模块只是一个 Python 附带的 C "
577576
"扩展模块,就像 :mod:`socket` 或 :mod:`zlib` 模块一样。"
@@ -593,8 +592,8 @@ msgid ""
593592
"used without invoking their special meaning. This conflicts with Python's "
594593
"usage of the same character for the same purpose in string literals."
595594
msgstr ""
596-
"如前所述,正则表达式使用反斜杠字符 (``'\\'``) 来表示特殊形式或允许使用特殊字符而不调用它们的特殊含义。 这与 Python "
597-
"在字符串文字中用于相同目的的相同字符的使用相冲突。"
595+
"如前所述,正则表达式使用反斜杠字符 (``'\\'``) 来表示特殊形式,或用于消除元字符的特殊含义来匹配字面上的字符。 然而,反斜杠在 Python "
596+
"字符串的字面量中也有相同的用法,两者之者存在冲突。"
598597

599598
#: ../../howto/regex.rst:306
600599
msgid ""

0 commit comments

Comments
 (0)