1414# ww song <[email protected] >, 20221515# CCXXXI <[email protected] >, 20221616# Chris Lau, 2022
17- # Freesand Leo <[email protected] >, 2023 17+ # Freesand Leo <[email protected] >, 2024 1818#
1919#, fuzzy
2020msgid ""
@@ -23,7 +23,7 @@ msgstr ""
2323"Report-Msgid-Bugs-To : \n "
2424"POT-Creation-Date : 2024-01-12 14:14+0000\n "
2525"PO-Revision-Date : 2021-06-28 01:12+0000\n "
26- "
Last-Translator :
Freesand Leo <[email protected] >, 2023 \n "
26+ "
Last-Translator :
Freesand Leo <[email protected] >, 2024 \n "
2727"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2828"MIME-Version : 1.0\n "
2929"Content-Type : text/plain; charset=UTF-8\n "
@@ -54,6 +54,9 @@ msgid ""
5454"for a substitution, the replacement string must be of the same type as both "
5555"the pattern and the search string."
5656msgstr ""
57+ "模式和被搜索的字符串即可以是 Unicode 字符串 (:class:`str`),也可以是 8 位字节串 (:class:`bytes`)。 "
58+ "但是,Unicode 字符串与 8 位字节串不能混用:也就是说,不能将 Unicode "
59+ "字符串与字节串模式进行匹配,反之亦然;同样地,在执行替换时,替换字串的类型也必须与所用的模式和搜索字串的类型一致。"
5760
5861#: ../../library/re.rst:24
5962msgid ""
@@ -442,7 +445,7 @@ msgid ""
442445"Character classes such as ``\\ w`` or ``\\ S`` (defined below) are also "
443446"accepted inside a set, although the characters they match depend on the "
444447"flags_ used."
445- msgstr ""
448+ msgstr "字符类如 `` \\ w`` 或者 `` \\ S`` (定义如下) 也在集合内被接受,不过它们可匹配的字符则依赖于所使用的 flags_。 "
446449
447450#: ../../library/re.rst:264
448451msgid ""
@@ -551,30 +554,32 @@ msgid ""
551554"``'s'``, ``'u'``, ``'x'``.) The group matches the empty string; the letters "
552555"set the corresponding flags for the entire regular expression:"
553556msgstr ""
557+ "(一个或多个来自 ``'a'``, ``'i'``, ``'L'``, ``'m'``, ``'s'``, ``'u'``, ``'x'`` "
558+ "集合的字母。) 分组将与空字符串相匹配;这些字母将为整个正则表达式设置相应的旗标:"
554559
555560#: ../../library/re.rst:333 ../../library/re.rst:365
556561msgid ":const:`re.A` (ASCII-only matching)"
557- msgstr ""
562+ msgstr ":const:`re.A` (仅限 ASCII 匹配) "
558563
559564#: ../../library/re.rst:334 ../../library/re.rst:366
560565msgid ":const:`re.I` (ignore case)"
561- msgstr ""
566+ msgstr ":const:`re.I` (忽略大小写) "
562567
563568#: ../../library/re.rst:335 ../../library/re.rst:367
564569msgid ":const:`re.L` (locale dependent)"
565- msgstr ""
570+ msgstr ":const:`re.L` (依赖于语言区域) "
566571
567572#: ../../library/re.rst:336 ../../library/re.rst:368
568573msgid ":const:`re.M` (multi-line)"
569- msgstr ""
574+ msgstr ":const:`re.M` (多行) "
570575
571576#: ../../library/re.rst:337 ../../library/re.rst:369
572577msgid ":const:`re.S` (dot matches all)"
573- msgstr ""
578+ msgstr ":const:`re.S` (点号匹配所有字符) "
574579
575580#: ../../library/re.rst:338 ../../library/re.rst:370
576581msgid ":const:`re.U` (Unicode matching)"
577- msgstr ""
582+ msgstr ":const:`re.U` (Unicode 匹配) "
578583
579584#: ../../library/re.rst:339 ../../library/re.rst:371
580585msgid ":const:`re.X` (verbose)"
0 commit comments