Skip to content

Commit 66e207c

Browse files
sync with cpython ef862d61
1 parent f29a3f4 commit 66e207c

3 files changed

Lines changed: 1052 additions & 1017 deletions

File tree

library/glob.po

Lines changed: 41 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.14\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2026-04-09 11:50+0000\n"
10+
"POT-Creation-Date: 2026-07-07 00:35+0000\n"
1111
"PO-Revision-Date: 2023-01-24 01:21+0800\n"
1212
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -47,11 +47,12 @@ msgid ""
4747
msgstr "路徑名稱不會以特定順序回傳。如果你需要特定的順序,請對結果進行排序。"
4848

4949
#: ../../library/glob.rst:32
50+
#, fuzzy
5051
msgid ""
51-
"Files beginning with a dot (``.``) can only be matched by patterns that also "
52-
"start with a dot, unlike :func:`fnmatch.fnmatch` or :func:`pathlib.Path."
53-
"glob`. For tilde and shell variable expansion, use :func:`os.path."
54-
"expanduser` and :func:`os.path.expandvars`."
52+
"By default, files beginning with a dot (``.``) can only be matched by "
53+
"patterns that also start with a dot, unlike :func:`fnmatch.fnmatch` or :func:"
54+
"`pathlib.Path.glob`. For tilde and shell variable expansion, use :func:`os."
55+
"path.expanduser` and :func:`os.path.expandvars`."
5556
msgstr ""
5657
"以點 (``.``) 開頭的檔案只能與同樣以點開頭的模式匹配,這與 :func:`fnmatch."
5758
"fnmatch` 或 :func:`pathlib.Path.glob` 不同。對於波浪號和 shell 變數擴展,請使"
@@ -118,124 +119,125 @@ msgstr ""
118119

119120
#: ../../library/glob.rst:73
120121
msgid ""
121-
"If *include_hidden* is true, \"``**``\" pattern will match hidden "
122-
"directories."
123-
msgstr "如果 *include_hidden* 為真,\"``**``\" 模式將匹配被隱藏的目錄。"
122+
"If *include_hidden* is true, wildcards can match path segments that begin "
123+
"with a dot (``.``)."
124+
msgstr ""
124125

125-
#: ../../library/glob.rst:75 ../../library/glob.rst:107
126+
#: ../../library/glob.rst:76 ../../library/glob.rst:108
126127
msgid ""
127128
"Raises an :ref:`auditing event <auditing>` ``glob.glob`` with arguments "
128129
"``pathname``, ``recursive``."
129130
msgstr ""
130131
"引發一個附帶引數 ``pathname``、``recursive`` 的\\ :ref:`稽核事件 <auditing>` "
131132
"``glob.glob``。"
132133

133-
#: ../../library/glob.rst:76 ../../library/glob.rst:108
134+
#: ../../library/glob.rst:77 ../../library/glob.rst:109
134135
msgid ""
135136
"Raises an :ref:`auditing event <auditing>` ``glob.glob/2`` with arguments "
136137
"``pathname``, ``recursive``, ``root_dir``, ``dir_fd``."
137138
msgstr ""
138139
"引發一個附帶引數 ``pathname``、``recursive``、``root_dir``、``dir_fd`` 的\\ :"
139140
"ref:`稽核事件 <auditing>` ``glob.glob/2``。"
140141

141-
#: ../../library/glob.rst:79
142+
#: ../../library/glob.rst:80
142143
msgid ""
143144
"Using the \"``**``\" pattern in large directory trees may consume an "
144145
"inordinate amount of time."
145146
msgstr "在大型目錄樹中使用 \"``**``\" 模式可能會消耗過多的時間。"
146147

147-
#: ../../library/glob.rst:83 ../../library/glob.rst:111
148+
#: ../../library/glob.rst:84 ../../library/glob.rst:112
148149
msgid ""
149150
"This function may return duplicate path names if *pathname* contains "
150151
"multiple \"``**``\" patterns and *recursive* is true."
151152
msgstr ""
152153

153-
#: ../../library/glob.rst:87 ../../library/glob.rst:115
154+
#: ../../library/glob.rst:88 ../../library/glob.rst:116
154155
msgid ""
155156
"Any :exc:`OSError` exceptions raised from scanning the filesystem are "
156157
"suppressed. This includes :exc:`PermissionError` when accessing directories "
157158
"without read permission."
158159
msgstr ""
159160

160-
#: ../../library/glob.rst:91 ../../library/glob.rst:119
161+
#: ../../library/glob.rst:92 ../../library/glob.rst:120
161162
msgid "Support for recursive globs using \"``**``\"."
162163
msgstr "支援以 \"``**``\" 使用遞迴 glob。"
163164

164-
#: ../../library/glob.rst:94 ../../library/glob.rst:122
165+
#: ../../library/glob.rst:95 ../../library/glob.rst:123
165166
msgid "Added the *root_dir* and *dir_fd* parameters."
166167
msgstr "新增 *root_dir* 與 *dir_fd* 參數。"
167168

168-
#: ../../library/glob.rst:97 ../../library/glob.rst:125
169+
#: ../../library/glob.rst:98 ../../library/glob.rst:126
169170
msgid "Added the *include_hidden* parameter."
170171
msgstr "新增 *include_hidden* 參數。"
171172

172-
#: ../../library/glob.rst:104
173+
#: ../../library/glob.rst:105
173174
msgid ""
174175
"Return an :term:`iterator` which yields the same values as :func:`glob` "
175176
"without actually storing them all simultaneously."
176177
msgstr ""
177178
"回傳一個會產生與 :func:`glob` 相同的值的 :term:`iterator` ,而不是同時儲存全"
178179
"部的值。"
179180

180-
#: ../../library/glob.rst:131
181+
#: ../../library/glob.rst:132
182+
#, fuzzy
181183
msgid ""
182184
"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful "
183185
"if you want to match an arbitrary literal string that may have special "
184186
"characters in it. Special characters in drive/UNC sharepoints are not "
185-
"escaped, e.g. on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns ``'//?/"
186-
"c:/Quo vadis[?].txt'``."
187+
"escaped, for example on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns "
188+
"``'//?/c:/Quo vadis[?].txt'``."
187189
msgstr ""
188190
"跳脫 (escape) 所有特殊字元(``'?'``、``'*'`` 和 ``'['``)。如果你想匹配其中可"
189191
"能包含特殊字元的任意文本字串,這將會很有用。驅動器 (drive)/UNC 共享點 "
190192
"(sharepoints) 中的特殊字元不會被跳脫,例如在 Windows 上,``escape('//?/c:/"
191193
"Quo vadis?.txt')`` 會回傳 ``'//?/c:/Quo vadis[?].txt'``。"
192194

193-
#: ../../library/glob.rst:142
195+
#: ../../library/glob.rst:143
194196
msgid ""
195197
"Convert the given path specification to a regular expression for use with :"
196198
"func:`re.match`. The path specification can contain shell-style wildcards."
197199
msgstr ""
198200

199-
#: ../../library/glob.rst:145
201+
#: ../../library/glob.rst:146
200202
msgid "For example:"
201203
msgstr "舉例來說:"
202204

203-
#: ../../library/glob.rst:156
205+
#: ../../library/glob.rst:157
204206
msgid ""
205207
"Path separators and segments are meaningful to this function, unlike :func:"
206208
"`fnmatch.translate`. By default wildcards do not match path separators, and "
207209
"``*`` pattern segments match precisely one path segment."
208210
msgstr ""
209211

210-
#: ../../library/glob.rst:160
212+
#: ../../library/glob.rst:161
211213
msgid ""
212214
"If *recursive* is true, the pattern segment \"``**``\" will match any number "
213215
"of path segments."
214216
msgstr ""
215217

216-
#: ../../library/glob.rst:163
218+
#: ../../library/glob.rst:164
217219
msgid ""
218220
"If *include_hidden* is true, wildcards can match path segments that start "
219221
"with a dot (``.``)."
220222
msgstr ""
221223

222-
#: ../../library/glob.rst:166
224+
#: ../../library/glob.rst:167
223225
msgid ""
224226
"A sequence of path separators may be supplied to the *seps* argument. If not "
225227
"given, :data:`os.sep` and :data:`~os.altsep` (if available) are used."
226228
msgstr ""
227229

228-
#: ../../library/glob.rst:171
230+
#: ../../library/glob.rst:172
229231
msgid ""
230232
":meth:`pathlib.PurePath.full_match` and :meth:`pathlib.Path.glob` methods, "
231233
"which call this function to implement pattern matching and globbing."
232234
msgstr ""
233235

234-
#: ../../library/glob.rst:179
236+
#: ../../library/glob.rst:180
235237
msgid "Examples"
236238
msgstr "範例"
237239

238-
#: ../../library/glob.rst:181
240+
#: ../../library/glob.rst:182
239241
msgid ""
240242
"Consider a directory containing the following files: :file:`1.gif`, :file:`2."
241243
"txt`, :file:`card.gif` and a subdirectory :file:`sub` which contains only "
@@ -246,7 +248,7 @@ msgstr ""
246248
"gif`,和一個僅包含 :file:`3.txt` 檔案的子目錄 :file:`sub`,:func:`glob` 將產"
247249
"生以下結果。請注意路徑的任何前導部分是如何保留的。 ::"
248250

249-
#: ../../library/glob.rst:187
251+
#: ../../library/glob.rst:188
250252
msgid ""
251253
">>> import glob\n"
252254
">>> glob.glob('./[0-9].*')\n"
@@ -272,7 +274,7 @@ msgstr ""
272274
">>> glob.glob('./**/', recursive=True)\n"
273275
"['./', './sub/']"
274276

275-
#: ../../library/glob.rst:199
277+
#: ../../library/glob.rst:200
276278
msgid ""
277279
"If the directory contains files starting with ``.`` they won't be matched by "
278280
"default. For example, consider a directory containing :file:`card.gif` and :"
@@ -281,7 +283,7 @@ msgstr ""
281283
"如果目錄包含以 ``.`` 開頭的檔案,則預設情況下不會去匹配到它們。例如,一個包"
282284
"含 :file:`card.gif` 和 :file:`.card.gif` 的目錄: ::"
283285

284-
#: ../../library/glob.rst:203
286+
#: ../../library/glob.rst:204
285287
msgid ""
286288
">>> import glob\n"
287289
">>> glob.glob('*.gif')\n"
@@ -295,12 +297,12 @@ msgstr ""
295297
">>> glob.glob('.c*')\n"
296298
"['.card.gif']"
297299

298-
#: ../../library/glob.rst:210
300+
#: ../../library/glob.rst:211
299301
msgid ""
300302
"The :mod:`fnmatch` module offers shell-style filename (not path) expansion."
301303
msgstr ":mod:`fnmatch` 模組提供了 shell 風格檔案名(不是路徑)的擴展"
302304

303-
#: ../../library/glob.rst:213
305+
#: ../../library/glob.rst:214
304306
msgid "The :mod:`pathlib` module offers high-level path objects."
305307
msgstr ":mod:`pathlib` 模組提供高階路徑物件。"
306308

@@ -343,3 +345,8 @@ msgstr ". (點)"
343345
#: ../../library/glob.rst:65
344346
msgid "**"
345347
msgstr "**"
348+
349+
#~ msgid ""
350+
#~ "If *include_hidden* is true, \"``**``\" pattern will match hidden "
351+
#~ "directories."
352+
#~ msgstr "如果 *include_hidden* 為真,\"``**``\" 模式將匹配被隱藏的目錄。"

0 commit comments

Comments
 (0)