66# Translators:
7788# Fei Yin <[email protected] >, 20189- # Freesand Leo <[email protected] >, 2018109# Junkai Shao <[email protected] >, 20181110# Danny Vi <[email protected] >, 20181211# Meng Du <[email protected] >, 201912+ # Freesand Leo <[email protected] >, 20191313#
1414#, fuzzy
1515msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818"Report-Msgid-Bugs-To : \n "
1919"POT-Creation-Date : 2019-02-20 10:40+0900\n "
2020"PO-Revision-Date : 2017-02-16 17:45+0000\n "
21- "Last-Translator : Meng Du <alphanow@gmail .com>, 2019\n "
21+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2019\n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2323"MIME-Version : 1.0\n "
2424"Content-Type : text/plain; charset=UTF-8\n "
@@ -93,8 +93,9 @@ msgid ""
9393"be slower than an elaborate regular expression, it will also probably be "
9494"more understandable."
9595msgstr ""
96- "正则表达式语言相对较小且受限制,因此并非所有可能的字符串处理任务都可以使用正则表达式完成。 还有一些任务*可以*用正则表达式完成,但表达式变得非常复杂。"
97- " 在这些情况下,你最好编写Python代码来进行处理;虽然Python代码比精心设计的正则表达式慢,但它也可能更容易理解。"
96+ "正则表达式语言相对较小且受限制,因此并非所有可能的字符串处理任务都可以使用正则表达式完成。 还有一些任务 *可以* "
97+ "用正则表达式完成,但表达式变得非常复杂。 在这些情况下,你最好编写 Python 代码来进行处理;虽然 Python "
98+ "代码比精心设计的正则表达式慢,但它也可能更容易理解。"
9899
99100#: ../../howto/regex.rst:51
100101msgid "Simple Patterns"
@@ -126,7 +127,7 @@ msgid ""
126127"``TEST`` as well; more about this later.)"
127128msgstr ""
128129"大多数字母和字符只会匹配自己。 例如,正则表达式 ``test`` 将完全匹配字符串 ``test`` 。 "
129- "(你可以启用一个不区分大小写的模式,让这个正则匹配``Test``或 ``TEST``,稍后会详细介绍。)"
130+ "(你可以启用一个不区分大小写的模式,让这个正则匹配 ``Test`` 或 ``TEST``,稍后会详细介绍。)"
130131
131132#: ../../howto/regex.rst:70
132133msgid ""
@@ -157,10 +158,9 @@ msgid ""
157158" set of characters. If you wanted to match only lowercase letters, your RE "
158159"would be ``[a-z]``."
159160msgstr ""
160- "我们将看到的第一个元字符是``[``和``]``。 它们用于指定字符类,它是你希望匹配的一组字符。 "
161- "可以单独列出字符,也可以通过给出两个字符并用``'-'``标记将它们分开来表示一系列字符。 "
162- "例如,``[abc]``将匹配任何字符``a``、``b``或``c``; 这与``[a-c]``相同,它使用一个范围来表示同一组字符。 "
163- "如果你只想匹配小写字母,你的正则是``[a-z]``。"
161+ "我们将看到的第一个元字符是 ``[``和``]``。 它们用于指定字符类,它是你希望匹配的一组字符。 可以单独列出字符,也可以通过给出两个字符并用 "
162+ "``'-'`` 标记将它们分开来表示一系列字符。 例如,``[abc]`` 将匹配任何字符 ``a``、``b`` 或 ``c``; 这与 "
163+ "``[a-c]`` 相同,它使用一个范围来表示同一组字符。 如果你只想匹配小写字母,你的正则是 ``[a-z]``。"
164164
165165#: ../../howto/regex.rst:92
166166msgid ""
@@ -169,8 +169,8 @@ msgid ""
169169"is usually a metacharacter, but inside a character class it's stripped of "
170170"its special nature."
171171msgstr ""
172- "字符类中的元字符不生效。 "
173- "例如,``[akm$]``将匹配``'a'``,``'k'``、``'m'``或``'$'``中的任意字符;``'$'`` 通常是一个元字符,但在一个字符类中它被剥夺了特殊性。"
172+ "字符类中的元字符不生效。 例如,``[akm$]`` 将匹配``'a'``,``'k'``、``'m'``或``'$'`` 中的任意字符;``'$'`` "
173+ " 通常是一个元字符,但在一个字符类中它被剥夺了特殊性。"
174174
175175#: ../../howto/regex.rst:97
176176msgid ""
@@ -181,9 +181,9 @@ msgid ""
181181"class, it does not have special meaning. For example: ``[5^]`` will match "
182182"either a ``'5'`` or a ``'^'``."
183183msgstr ""
184- "你可以通过以下方式匹配 :dfn:`complementing` 设置的字符类中未列出的字符。这通过包含一个``'^'``作为该类的第一个字符来表示。 "
185- "例如,``[^5]``将匹配除``'5'``之外的任何字符。 如果插入符出现在字符类的其他位置,则它没有特殊含义。 "
186- "例如:``[5^]``将匹配``'5'``或 ``'^'``。"
184+ "你可以通过以下方式匹配 :dfn:`complementing` 设置的字符类中未列出的字符。这通过包含一个 ``'^'`` "
185+ "作为该类的第一个字符来表示。 例如,``[^5]`` 将匹配除 ``'5'`` 之外的任何字符。 如果插入符出现在字符类的其他位置,则它没有特殊含义。 "
186+ "例如:``[5^]`` 将匹配 ``'5'`` 或 ``'^'``。"
187187
188188#: ../../howto/regex.rst:103
189189msgid ""
@@ -194,15 +194,16 @@ msgid ""
194194"need to match a ``[`` or ``\\ ``, you can precede them with a backslash to "
195195"remove their special meaning: ``\\ [`` or ``\\\\ ``."
196196msgstr ""
197- "也许最重要的元字符是反斜杠,``\\ ``。 "
198- "与Python字符串文字一样,反斜杠后面可以跟各种字符,以指示各种特殊序列。它也用于转义所有元字符,因此您仍然可以在模式中匹配它们;例如,如果你需要匹配``[``或``\\ ``,你可以在它们前面加一个反斜杠来移除它们的特殊含义:``\\ [``或``\\\\ ``。"
197+ "也许最重要的元字符是反斜杠,``\\ ``。 与 Python "
198+ "字符串文字一样,反斜杠后面可以跟各种字符,以指示各种特殊序列。它也用于转义所有元字符,因此您仍然可以在模式中匹配它们;例如,如果你需要匹配 ``[`` "
199+ "或 ``\\ ``,你可以在它们前面加一个反斜杠来移除它们的特殊含义:``\\ [`` 或 ``\\\\ ``。"
199200
200201#: ../../howto/regex.rst:110
201202msgid ""
202203"Some of the special sequences beginning with ``'\\ '`` represent predefined "
203204"sets of characters that are often useful, such as the set of digits, the set"
204205" of letters, or the set of anything that isn't whitespace."
205- msgstr "一些以``'\\ '``开头的特殊序列表示通常有用的预定义字符集,例如数字集、字母集或任何非空格的集合。"
206+ msgstr "一些以 ``'\\ '`` 开头的特殊序列表示通常有用的预定义字符集,例如数字集、字母集或任何非空格的集合。"
206207
207208#: ../../howto/regex.rst:115
208209msgid ""
@@ -214,10 +215,10 @@ msgid ""
214215"``\\ w`` in a string pattern by supplying the :const:`re.ASCII` flag when "
215216"compiling the regular expression."
216217msgstr ""
217- "让我们举一个例子:``\\ w``匹配任何字母数字字符。 "
218- "如果正则表达式模式以字节类表示,这相当于类 ``[a-zA-Z0-9_]``。如果正则表达式是一个字符串,``\\ w``将匹配由 "
219- ":mod:`unicodedata` 模块提供的Unicode数据库中标记为字母的所有字符。 通过在编译正则表达式时提供 "
220- ":const:`re.ASCII` 标志,可以在字符串模式中使用更为受限制的`` \\ w``定义。"
218+ "让我们举一个例子:``\\ w`` 匹配任何字母数字字符。 如果正则表达式模式以字节类表示,这相当于类 "
219+ "``[a-zA-Z0-9_]``。如果正则表达式是一个字符串,``\\ w`` 将匹配由 :mod:`unicodedata` 模块提供的 Unicode "
220+ " 数据库中标记为字母的所有字符。 通过在编译正则表达式时提供 :const:`re.ASCII` 标志,可以在字符串模式中使用更为受限制的 "
221+ "`` \\ w`` 定义。"
221222
222223#: ../../howto/regex.rst:123
223224msgid ""
@@ -227,16 +228,16 @@ msgid ""
227228"Standard Library reference. In general, the Unicode versions match any "
228229"character that's in the appropriate category in the Unicode database."
229230msgstr ""
230- "以下特殊序列列表不完整。 有关 Unicode 字符串模式的序列和扩展类定义的完整列表,请参阅标准库参考中的最后一部分 :ref:`Regular "
231- "Expression Syntax <re-syntax>` 。通常,Unicode 版本匹配Unicode数据库中相应类别中的任何字符 。"
231+ "以下特殊序列列表不完整。 有关 Unicode 字符串模式的序列和扩展类定义的完整列表,请参阅标准库参考中的最后一部分 :ref:`正则表达式语法 "
232+ "<re-syntax>` 。通常,Unicode 版本匹配 Unicode 数据库中相应类别中的任何字符 。"
232233
233234#: ../../howto/regex.rst:131
234235msgid "``\\ d``"
235236msgstr "``\\ d``"
236237
237238#: ../../howto/regex.rst:131
238239msgid "Matches any decimal digit; this is equivalent to the class ``[0-9]``."
239- msgstr "匹配任何十进制数字;这等价于类``[0-9]``。"
240+ msgstr "匹配任何十进制数字;这等价于类 ``[0-9]``。"
240241
241242#: ../../howto/regex.rst:134
242243msgid "``\\ D``"
@@ -245,7 +246,7 @@ msgstr "``\\D``"
245246#: ../../howto/regex.rst:134
246247msgid ""
247248"Matches any non-digit character; this is equivalent to the class ``[^0-9]``."
248- msgstr "匹配任何非数字字符;这等价于类``[^0-9]``。"
249+ msgstr "匹配任何非数字字符;这等价于类 ``[^0-9]``。"
249250
250251#: ../../howto/regex.rst:138
251252msgid "``\\ s``"
@@ -265,7 +266,7 @@ msgstr "``\\S``"
265266msgid ""
266267"Matches any non-whitespace character; this is equivalent to the class ``[^ "
267268"\\ t\\ n\\ r\\ f\\ v]``."
268- msgstr "匹配任何非空白字符;这相当于类``[^ \\ t\\ n\\ r\\ f\\ v]``。"
269+ msgstr "匹配任何非空白字符;这相当于类 ``[^ \\ t\\ n\\ r\\ f\\ v]``。"
269270
270271#: ../../howto/regex.rst:146
271272msgid "``\\ w``"
@@ -275,7 +276,7 @@ msgstr "``\\w``"
275276msgid ""
276277"Matches any alphanumeric character; this is equivalent to the class "
277278"``[a-zA-Z0-9_]``."
278- msgstr ""
279+ msgstr "匹配任何字母与数字字符;这相当于类 ``[a-zA-Z0-9_]``。 "
279280
280281#: ../../howto/regex.rst:150
281282msgid "``\\ W``"
@@ -285,7 +286,7 @@ msgstr "``\\W``"
285286msgid ""
286287"Matches any non-alphanumeric character; this is equivalent to the class "
287288"``[^a-zA-Z0-9_]``."
288- msgstr ""
289+ msgstr "匹配任何非字母与数字字符;这相当于类 ``[^a-zA-Z0-9_]``. "
289290
290291#: ../../howto/regex.rst:152
291292msgid ""
0 commit comments