Skip to content

Commit 9acf41c

Browse files
[po] auto sync
1 parent 2a2d773 commit 9acf41c

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.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-25T13:47:04Z"}
1+
{"translation": "96.11%", "updated_at": "2024-08-25T14:47:09Z"}

howto/regex.po

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,17 @@ msgid ""
194194
"need to match a ``[`` or ``\\``, you can precede them with a backslash to "
195195
"remove their special meaning: ``\\[`` or ``\\\\``."
196196
msgstr ""
197-
"也许最重要的元字符是反斜杠,``\\`` 。 与 Python "
198-
"字符串字面量一样,反斜杠后面可以跟各种字符来表示各种特殊序列。它还用于转义元字符,以便可以在表达式中匹配元字符本身。例如,如果需要匹配一个 ``[`` "
199-
"或 ``\\`` ,可以在其前面加上一个反斜杠来消除它们的特殊含义:``\\[`` 或 ``\\\\`` 。"
197+
"反斜杠``\\`` 可能是正则表达式中最重要的元字符。 就像在 Python "
198+
"字符串字面量中一样,反斜杠后面可以跟随不同的字符,表示各种特殊序列。同时,反斜杠还可以用来转义元字符,使你能在 pattern "
199+
"中匹配元字符本身。例如,如果需要匹配一个 ``[`` 或 ``\\`` ,可以在它们前面加上一个反斜杠来消除它们的特殊含义:``\\[`` 或 "
200+
"``\\\\`` 。"
200201

201202
#: ../../howto/regex.rst:110
202203
msgid ""
203204
"Some of the special sequences beginning with ``'\\'`` represent predefined "
204205
"sets of characters that are often useful, such as the set of digits, the set"
205206
" of letters, or the set of anything that isn't whitespace."
206-
msgstr "一些以 ``'\\'`` 开头的特殊序列表示预定义的字符集合,这些字符集通常很有用,例如数字集合、字母集合或非空白字符集合。"
207+
msgstr "一些以 ``'\\'`` 开头的特殊序列,它们代表了预定义的字符集,这些字符集通常非常有用,例如数字集、字母集或非空白字符集。"
207208

208209
#: ../../howto/regex.rst:115
209210
msgid ""
@@ -215,10 +216,10 @@ msgid ""
215216
"``\\w`` in a string pattern by supplying the :const:`re.ASCII` flag when "
216217
"compiling the regular expression."
217218
msgstr ""
218-
"让我们举一个例子:``\\w`` 匹配任何字母数字字符。 如果正则表达式以 bytes 类型表示,``\\w`` 相当于字符类 "
219-
"``[a-zA-Z0-9_]`` 。如果正则表达式是 str 类型,``\\w`` 将匹配由 :mod:`unicodedata` 模块提供的 "
220-
"Unicode 数据库中标记为字母的所有字符。 通过在编译正则表达式时提供 :const:`re.ASCII` 标志,可以在 str "
221-
"表达式中使用较为狭窄的 ``\\w`` 定义。"
219+
"让我们来看一个例子:``\\w`` 匹配任何字母数字字符。 如果正则 pattern 以字节形式表示,这个字符类等同于 ``[a-zA-Z0-9_]``"
220+
" 。如果正则 pattern 是字符串形式,``\\w`` 将匹配 Unicode 数据库中被标记为字母的任何字符,该数据库由 "
221+
":mod:`unicodedata` 模块提供。如果想要在字符串 pattern 中使用更受限的 ``\\w`` 定义,可以在编译正则表达式时添加 "
222+
":const:`re.ASCII` 标志。"
222223

223224
#: ../../howto/regex.rst:123
224225
msgid ""
@@ -228,8 +229,9 @@ msgid ""
228229
"Standard Library reference. In general, the Unicode versions match any "
229230
"character that's in the appropriate category in the Unicode database."
230231
msgstr ""
231-
"以下为特殊序列的不完全列表。 有关 Unicode 字符串正则表达式的序列和扩展类定义的完整列表,参见标准库参考中 :ref:`正则表达式语法 <re-"
232-
"syntax>` 的最后一部分 。通常,Unicode 版本的字符类会匹配 Unicode 数据库的相应类别中的任何字符。"
232+
"以下为特殊序列的不完全列表。 如果需要完整的序列列表,以及 Unicode 字符串 pattern 的扩展类定义,请参阅标准库参考中 "
233+
":ref:`正则表达式语法 <re-syntax>` 的最后一部分 。一般来说,Unicode 版本的字符类会匹配 Unicode "
234+
"数据库中属于相应类别的任何字符。"
233235

234236
#: ../../howto/regex.rst:130
235237
msgid "``\\d``"

0 commit comments

Comments
 (0)