@@ -9,7 +9,7 @@ msgstr ""
9
9
"Project-Id-Version : Python 3.12\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
11
"POT-Creation-Date : 2023-08-27 00:04+0000\n "
12
- "PO-Revision-Date : 2023-05-20 13:44 +0800\n "
12
+ "PO-Revision-Date : 2023-09-16 14:49 +0800\n "
13
13
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
14
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
15
15
"tw)\n "
@@ -18,7 +18,7 @@ msgstr ""
18
18
"Content-Type : text/plain; charset=UTF-8\n "
19
19
"Content-Transfer-Encoding : 8bit\n "
20
20
"Plural-Forms : nplurals=1; plural=0;\n "
21
- "X-Generator : Poedit 3.3.1 \n "
21
+ "X-Generator : Poedit 3.3.2 \n "
22
22
23
23
#: ../../library/re.rst:2
24
24
msgid ":mod:`re` --- Regular expression operations"
@@ -32,8 +32,7 @@ msgstr "**原始碼:**\\ :source:`Lib/re/`"
32
32
msgid ""
33
33
"This module provides regular expression matching operations similar to those "
34
34
"found in Perl."
35
- msgstr ""
36
- "此模組提供類似於 Perl 中正規表示式的配對操作。"
35
+ msgstr "此模組提供類似於 Perl 中正規表示式的配對操作。"
37
36
38
37
#: ../../library/re.rst:17
39
38
msgid ""
@@ -44,10 +43,10 @@ msgid ""
44
43
"substitution, the replacement string must be of the same type as both the "
45
44
"pattern and the search string."
46
45
msgstr ""
47
- "被搜尋的模式 (pattern) 與字串可以是 Unicode 字串 (:class:`str`),也可以是 8-bit "
48
- "字串 (:class:`bytes`)。然而,Unicode 字串和 8-bit 字串不能混用:也就是,你不能用 "
49
- "byte 模式配對 Unicode 字串,反之亦然;同樣地,替換時,用來替換的字串必須與模式和搜尋 "
50
- "字串是相同的型別 (type)。"
46
+ "被搜尋的模式 (pattern) 與字串可以是 Unicode 字串 (:class:`str`),也可以是 8-"
47
+ "bit 字串 (:class:`bytes`)。然而,Unicode 字串和 8-bit 字串不能混用:也就是,"
48
+ "你不能用 byte 模式配對 Unicode 字串,反之亦然;同樣地,替換時,用來替換的字串 "
49
+ "必須與模式和搜尋字串是相同的型別 (type)。"
51
50
52
51
#: ../../library/re.rst:24
53
52
msgid ""
@@ -64,12 +63,13 @@ msgid ""
64
63
"even if it is a valid escape sequence for a regular expression."
65
64
msgstr ""
66
65
"正規表示式使用反斜線字元 (``'\\ '``) 表示特別的形式,或是使用特殊字元而不調用"
67
- "它們的特殊意義。這與 Python 在字串文本 (literal) 中,為了一樣的目的使用同一個字元的"
68
- "目的相衝突;舉例來說,為了配對一個反斜線文字,一個人可能需要寫 ``'\\\\\\\\ '`` 當作"
69
- "模式字串,因為正規表示式必須是 ``\\\\ ``,而且每個反斜線在一個普通的 Python 字串文本中"
70
- "必須表示為 ``\\\\ ``。另外,請注意在 Python 的字串文本中使用反斜線的任何無效跳脫序列"
71
- "目前會產生一個 :exc:`SyntaxWarning`,而在未來這會變成一個 :exc:`SyntaxError`。"
72
- "儘管它對正規表示式是一個有效的跳脫序列,這種行為也會發生。"
66
+ "它們的特殊意義。這與 Python 在字串文本 (literal) 中,為了一樣的目的使用同一個"
67
+ "字元的目的相衝突;舉例來說,為了配對一個反斜線文字,一個人可能需要寫 ``'\\\\ "
68
+ "\\\\ '`` 當作模式字串,因為正規表示式必須是 ``\\\\ ``,而且每個反斜線在一個普通"
69
+ "的 Python 字串文本中必須表示為 ``\\\\ ``。另外,請注意在 Python 的字串文本中使"
70
+ "用反斜線的任何無效跳脫序列目前會產生一個 :exc:`SyntaxWarning`,而在未來這會變"
71
+ "成一個 :exc:`SyntaxError`。儘管它對正規表示式是一個有效的跳脫序列,這種行為也"
72
+ "會發生。"
73
73
74
74
#: ../../library/re.rst:36
75
75
msgid ""
@@ -80,10 +80,10 @@ msgid ""
80
80
"a newline. Usually patterns will be expressed in Python code using this raw "
81
81
"string notation."
82
82
msgstr ""
83
- "解決方法是對正規表示式模式使用 Python 的原始字串符號;反斜線在一個以 ``'r'`` 為前綴 "
84
- "的字串文本中不會被用任何特別的方式處理 。所以 ``r\"\\ n\" `` 是一個兩個字元的字串,包含 "
85
- " ``'\\ '`` 和 ``'n'``,同時 ``\"\\ n\" `` 是一個單個字元的字串,包含一個換行符號。通常 "
86
- "模式在 Python 程式中會使用這個原始字串符號表示。"
83
+ "解決方法是對正規表示式模式使用 Python 的原始字串符號;反斜線在一個以 ``'r'`` "
84
+ "為前綴的字串文本中不會被用任何特別的方式處理 。所以 ``r\"\\ n\" `` 是一個兩個字 "
85
+ "元的字串,包含 ``'\\ '`` 和 ``'n'``,同時 ``\"\\ n\" `` 是一個單個字元的字串,包 "
86
+ "含一個換行符號。通常模式在 Python 程式中會使用這個原始字串符號表示。"
87
87
88
88
#: ../../library/re.rst:43
89
89
msgid ""
@@ -92,22 +92,22 @@ msgid ""
92
92
"expressions <re-objects>`. The functions are shortcuts that don't require "
93
93
"you to compile a regex object first, but miss some fine-tuning parameters."
94
94
msgstr ""
95
- "請務必注意到大部分的正規表示式操作是可以在模組層級的函式和 :ref:`"
96
- "compiled regular expressions <re-objects>` 中的方法使用的。這些函式是個捷徑 "
97
- "且讓你不需要先編譯一個正規表示式物件 ,但是會缺少一些微調參數。"
95
+ "請務必注意到大部分的正規表示式操作是可以在模組層級的函式和 :ref:`compiled "
96
+ "regular expressions <re-objects>` 中的方法使用的。這些函式是個捷徑且讓你不需 "
97
+ "要先編譯一個正規表示式物件 ,但是會缺少一些微調參數。"
98
98
99
99
#: ../../library/re.rst:51
100
100
msgid ""
101
101
"The third-party `regex <https://pypi.org/project/regex/>`_ module, which has "
102
102
"an API compatible with the standard library :mod:`re` module, but offers "
103
103
"additional functionality and a more thorough Unicode support."
104
104
msgstr ""
105
- "第三方的 `regex <https://pypi.org/project/regex/>`_ 模組,有著和標準函式庫"
106
- " : mod:`re` 模組相容的 API,但是提供額外的功能以及更完整的 Unicode 支援。"
105
+ "第三方的 `regex <https://pypi.org/project/regex/>`_ 模組,有著和標準函式庫 : "
106
+ "mod:`re` 模組相容的 API,但是提供額外的功能以及更完整的 Unicode 支援。"
107
107
108
108
#: ../../library/re.rst:59
109
109
msgid "Regular Expression Syntax"
110
- msgstr ""
110
+ msgstr "正規表示式語法 "
111
111
112
112
#: ../../library/re.rst:61
113
113
msgid ""
0 commit comments