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

Skip to content

Commit 3ebe8fc

Browse files
[po] auto sync
1 parent 7c70edd commit 3ebe8fc

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

howto/regex.po

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#
66
# Translators:
77
# df2dc1c92e792f7ae8417c51df43db8f_594d92a <0f49be28017426edb1db1a2ab6e67088_717605>, 2021
8+
# Konge <[email protected]>, 2021
89
# ppcfish <[email protected]>, 2021
910
# WH-2099 <[email protected]>, 2021
1011
# 操旭 <[email protected]>, 2021
11-
# Konge <[email protected]>, 2021
1212
# dannyvi <[email protected]>, 2021
1313
# Alpha Du <[email protected]>, 2021
1414
# ww song <[email protected]>, 2022
@@ -330,8 +330,8 @@ msgid ""
330330
"that the previous character can be matched zero or more times, instead of "
331331
"exactly once."
332332
msgstr ""
333-
"用于重复前面内容的元字符,我们先来说说 ``*`` 。 ``*`` 并不是匹配一个字面字符 ``'*'`` "
334-
"。实际上,它指定前一个字符可以匹配零次或多次,而不是只匹配一次。"
333+
"我们先来说说重复元字符 ``*`` 。 ``*`` 并不是匹配一个字面字符 ``'*'`` "
334+
"。实际上,它指定前一个字符可以匹配零次或更多次,而不是只匹配一次。"
335335

336336
#: ../../howto/regex.rst:175
337337
msgid ""
@@ -475,9 +475,9 @@ msgid ""
475475
"similar example, ``ca+t`` will match ``'cat'`` (1 ``'a'``), ``'caaat'`` (3 "
476476
"``'a'``\\ s), but won't match ``'ct'``."
477477
msgstr ""
478-
"另一个重复的元字符是 ``+``,它匹配一次或多次。 要特别注意 ``*`` ``+`` 之间的区别;``*`` 匹配 *零次* "
479-
"或更多次,因此重复的任何东西都可能根本不存在,而 ``+`` 至少需要 *一次*。 使用类似的例子,``ca+t`` 将匹配 ``'cat'`` (1 "
480-
"``'a'``),``'caaat'`` (3 个 ``'a'``),但不会匹配 ``'ct'``。"
478+
"另一个重复元字符是 ``+`` ,表示匹配一次或更多次。请注意 ``*`` ``+`` 之间的差别。``*`` 表示匹配 *零次* "
479+
"或更多次,也就是说它所重复的内容是可以完全不出现的。而 ``+`` 则要求至少出现一次。举一个类似的例子,``ca+t`` 可以匹配 ``'cat'``"
480+
" (1 个``'a'``)或 ``'caaat'``3 个 ``'a'``),但不能匹配 ``'ct'`` 。"
481481

482482
#: ../../howto/regex.rst:233
483483
msgid ""
@@ -486,7 +486,7 @@ msgid ""
486486
"something as being optional. For example, ``home-?brew`` matches either "
487487
"``'homebrew'`` or ``'home-brew'``."
488488
msgstr ""
489-
"还有两个重复限定符。 问号字符 ``?`` 匹配一次或零次;你可以把它想象成是可选的。 例如,``home-?brew`` 匹配 "
489+
"还有两个重复限定符。 问号 ``?`` 表示匹配一次或零次。你可以认为它把内容变成了可选的。例如,``home-?brew``可以 匹配 "
490490
"``'homebrew'`` 或 ``'home-brew'``。"
491491

492492
#: ../../howto/regex.rst:238
@@ -497,17 +497,17 @@ msgid ""
497497
"``'a/b'``, ``'a//b'``, and ``'a///b'``. It won't match ``'ab'``, which has "
498498
"no slashes, or ``'a////b'``, which has four."
499499
msgstr ""
500-
"最复杂的重复限定符是 ``{m,n}``,其中 *m* 和 *n* 是十进制整数。 这个限定符意味着必须至少重复 *m* 次,最多重复 *n* 次。 "
501-
"例如,``a/{1,3}b`` 将匹配 ``'a/b'````'a//b'`` ``'a///b'`` 。 它不匹配没有斜线的 "
502-
"``'ab'``,或者有四个的 ``'a////b'``。"
500+
"最复杂的重复限定符是 ``{m,n}``,其中 *m* 和 *n* 是十进制整数。 该限定符意味着必须至少重复 *m* 次,最多重复 *n* 次。 "
501+
"例如,``a/{1,3}b`` 可以匹配 ``'a/b'````'a//b'`` 或者 ``'a///b'`` ,但不能匹配中间没有斜杆的 "
502+
"``'ab'``,或者四个斜杆的 ``'a////b'`` 。"
503503

504504
#: ../../howto/regex.rst:244
505505
msgid ""
506506
"You can omit either *m* or *n*; in that case, a reasonable value is assumed "
507507
"for the missing value. Omitting *m* is interpreted as a lower limit of 0, "
508508
"while omitting *n* results in an upper bound of infinity."
509509
msgstr ""
510-
"你可以省略 *m* *n*; 在这种情况下,将假定缺失值的合理值。 省略 *m* 被解释为 0 下限,而省略 *n* 则为无穷大的上限。"
510+
"*m* *n* 不是必填的,缺失的情况下会设定为默认值。缺失 *m* 会解释为最少重复 0 次 ,缺失 *n* 则解释为最多重复无限次。"
511511

512512
#: ../../howto/regex.rst:248
513513
msgid ""
@@ -517,8 +517,8 @@ msgid ""
517517
"better to use ``*``, ``+``, or ``?`` when you can, simply because they're "
518518
"shorter and easier to read."
519519
msgstr ""
520-
"还原论者的读者可能会注意到其他三个限定符都可以用这种表示法表达。 ``{0,}`` ``*`` 相同, ``{1,}`` 相当于 ``+`` "
521-
"``{0,1}`` ``?`` 相同。 最好使用 ``*`` ``+`` 或 ``?`` ,只要因为它们更短更容易阅读。"
520+
"细心的读者也许注意到了,前面的三个重复限定符都可以用这种标记法来表示。 ``{0,}`` 等同于 ``*`` ``{1,}`` 等同于 ``+`` "
521+
"``{0,1}`` 等同于 ``?`` 。 如果可以的话,最好使用 ``*`` ``+`` 或 ``?`` ,因为后者更简洁易读。"
522522

523523
#: ../../howto/regex.rst:256
524524
msgid "Using Regular Expressions"
@@ -531,8 +531,8 @@ msgid ""
531531
"regular expression engine, allowing you to compile REs into objects and then"
532532
" perform matches with them."
533533
msgstr ""
534-
"现在我们已经看了一些简单的正则表达式,我们如何在 Python 中实际使用它们? :mod:`re` "
535-
"模块提供了正则表达式引擎的接口,允许你将正则编译为对象,然后用它们进行匹配。"
534+
"现在我们已经了解了一些简单的正则表达式,那么我们如何在 Python 中实际使用它们呢? :mod:`re` "
535+
"模块提供了正则表达式引擎的接口,可以让你将正则编译为对象,然后用它们来进行匹配。"
536536

537537
#: ../../howto/regex.rst:265
538538
msgid "Compiling Regular Expressions"

0 commit comments

Comments
 (0)