@@ -18,7 +18,7 @@ msgid ""
18
18
msgstr ""
19
19
"Project-Id-Version : Python 3.9\n "
20
20
"Report-Msgid-Bugs-To : \n "
21
- "POT-Creation-Date : 2024-09-06 19:48 +0000\n "
21
+ "POT-Creation-Date : 2024-09-20 16:52 +0000\n "
22
22
"PO-Revision-Date : 2017-02-16 17:45+0000\n "
23
23
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
24
24
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -98,8 +98,9 @@ msgid ""
98
98
"be slower than an elaborate regular expression, it will also probably be "
99
99
"more understandable."
100
100
msgstr ""
101
- "正则表达式语言相对较小且受限,因此并非所有的字符串处理任务都能用正则表达式完成。有些任务尽管*可以*用正则表达式来完成,但表达式会变得非常复杂。在这些情况下,最好通过编写"
102
- " Python 代码来进行处理。也许 Python 代码的运行速度会比精心设计的正则表达式慢,但通常更容易理解。"
101
+ "正则表达式语言相对较小且受限,因此并非所有的字符串处理任务都能用正则表达式完成。有些任务尽管 *可以* "
102
+ "用正则表达式来完成,但表达式会变得非常复杂。在这些情况下,最好通过编写 Python 代码来进行处理。也许 Python "
103
+ "代码的运行速度会比精心设计的正则表达式慢,但通常更容易理解。"
103
104
104
105
#: ../../howto/regex.rst:51
105
106
msgid "Simple Patterns"
@@ -131,7 +132,7 @@ msgid ""
131
132
"``TEST`` as well; more about this later.)"
132
133
msgstr ""
133
134
"大多数字符在正则表达式中会简单地匹配自身。例如,正则表达式 ``test`` 将会精确地匹配到 ``test`` "
134
- "。(你可以启用不区分大小写模式,让这个正则也匹配 ``Test`` 或 ``TEST`` ; 关于这一点,稍后会详细讨论。)"
135
+ "。(你可以启用不区分大小写模式,让这个正则也匹配 ``Test`` 或 ``TEST`` 。 关于这一点,稍后会详细讨论。)"
135
136
136
137
#: ../../howto/regex.rst:70
137
138
msgid ""
@@ -527,7 +528,7 @@ msgstr ""
527
528
528
529
#: ../../howto/regex.rst:256
529
530
msgid "Using Regular Expressions"
530
- msgstr "正则表达式的使用 "
531
+ msgstr "使用正则表达式 "
531
532
532
533
#: ../../howto/regex.rst:258
533
534
msgid ""
@@ -678,7 +679,7 @@ msgid ""
678
679
" the backslashes isn't used."
679
680
msgstr ""
680
681
"此外,某些在正则表达式中有效,但在 Python 普通字符串字面量中无效的特殊转义序列,现在会引发导致 "
681
- ":exc:`DeprecationWarning` (弃用警告) ,并且在未来可能会变为一个 :exc:`SyntaxError` (语法错误) "
682
+ ":exc:`DeprecationWarning` ,并且在未来可能会变为 :exc:`SyntaxError` "
682
683
"。这意味着,如果没有使用原始字符串就直接书写正则本身,这种特殊序列将变得无效。"
683
684
684
685
#: ../../howto/regex.rst:341
@@ -859,7 +860,7 @@ msgstr "``span()``"
859
860
860
861
#: ../../howto/regex.rst:426
861
862
msgid "Return a tuple containing the (start, end) positions of the match"
862
- msgstr "返回包含匹配 (起始, 结束 ) 位置的元组"
863
+ msgstr "返回包含匹配 (start, end ) 位置的元组"
863
864
864
865
#: ../../howto/regex.rst:430
865
866
msgid "Trying these methods will soon clarify their meaning::"
@@ -1019,15 +1020,15 @@ msgstr ":const:`IGNORECASE`, :const:`I`"
1019
1020
1020
1021
#: ../../howto/regex.rst:546
1021
1022
msgid "Do case-insensitive matches."
1022
- msgstr "进行忽略大小写的匹配 。"
1023
+ msgstr "进行大小写不敏感匹配 。"
1023
1024
1024
1025
#: ../../howto/regex.rst:548
1025
1026
msgid ":const:`LOCALE`, :const:`L`"
1026
1027
msgstr ":const:`LOCALE`, :const:`L`"
1027
1028
1028
1029
#: ../../howto/regex.rst:548
1029
1030
msgid "Do a locale-aware match."
1030
- msgstr "进行区域设置感知的匹配 。"
1031
+ msgstr "进行区域设置感知匹配 。"
1031
1032
1032
1033
#: ../../howto/regex.rst:550
1033
1034
msgid ":const:`MULTILINE`, :const:`M`"
@@ -1061,13 +1062,13 @@ msgid ""
1061
1062
" lowercasing doesn't take the current locale into account; it will if you "
1062
1063
"also set the :const:`LOCALE` flag."
1063
1064
msgstr ""
1064
- "执行不区分大小写的匹配;字符类和字面字符串将通过忽略大小写来匹配字母。 例如,``[A-Z]`` 也匹配小写字母。 除非使用 "
1065
- ":const:`ASCII` 标志来禁用非ASCII匹配,否则完全 Unicode 匹配也有效。 当 Unicode 模式 ``[a-z]`` 或 "
1066
- "``[A-Z]`` 与 :const:`IGNORECASE` 标志结合使用时,它们将匹配 52 个 ASCII 字母和 4 个额外的非 ASCII "
1067
- "字母:'İ' ( U+0130, 拉丁大写字母 I,带上面的点),'ı' ( U+0131,拉丁文小写字母无点 i),'s' (U+017F,拉丁文小写字母长 "
1068
- " s) 和'K' ( U+212A, 开尔文符号) 。 ``Spam`` 将匹配 ``'Spam'``,``'spam'``,``'spAM'`` 或 "
1069
- "``'ſpam'`` (后者仅在 Unicode 模式下匹配)。 此小写不考虑当前区域设置;如果你还设置了 :const:`LOCALE` "
1070
- "标志,则将考虑 。"
1065
+ "进行大小写不敏感的匹配:字符类和普通字符串都会以忽略大小写的方式来匹配字母。 例如,``[A-Z]`` 同样可以匹配小写字母。默认情况下,正则表达式支持全 "
1066
+ " Unicode 匹配,除非使用了 :const:`ASCII` 标志来禁用非 ASCII 字符匹配。 当 Unicode pattern "
1067
+ "``[a-z]`` 或 ``[ A-Z]`` 与 :const:`IGNORECASE` 标志结合使用时,将会匹配 52 个 ASCII 字母,以及 4 "
1068
+ "个非 ASCII 字母:‘İ’( U+0130, 拉丁大写字母 I 头上带点)、 ‘ı’( U+0131, 拉丁小写字母 i "
1069
+ "不带点)、‘ſ’(U+017F, 拉丁小写字母长 s)和 ‘K’( U+212A, 开尔文符号) 。 ``Spam`` 可以匹配 ``'Spam'`` 、 "
1070
+ "``'spam'`` 、 ``'spAM'`` 或 ``' ſpam'`` (后者的匹配仅在 Unicode 模式下有效)。 "
1071
+ "这种大小写转换不考虑当前区域设置,如果设置了 :const:`LOCALE` 标记,则会考虑区域设置 。"
1071
1072
1072
1073
#: ../../howto/regex.rst:580
1073
1074
msgid ""
0 commit comments