@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.13\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2026-04-09 16:07 +0000\n "
15+ "POT-Creation-Date : 2026-07-07 18:08 +0000\n "
1616"PO-Revision-Date : 2025-09-15 01:04+0000\n "
1717"Last-Translator : Freesand Leo <yuqinju@163.com>, 2026\n "
1818"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -52,14 +52,11 @@ msgstr ""
5252
5353#: ../../library/glob.rst:32
5454msgid ""
55- "Files beginning with a dot (``.``) can only be matched by patterns that also "
56- " start with a dot, unlike :func:`fnmatch.fnmatch` or "
55+ "By default, files beginning with a dot (``.``) can only be matched by "
56+ "patterns that also start with a dot, unlike :func:`fnmatch.fnmatch` or "
5757":func:`pathlib.Path.glob`. For tilde and shell variable expansion, use "
5858":func:`os.path.expanduser` and :func:`os.path.expandvars`."
5959msgstr ""
60- "以点号 (``.``) 打头的文件只能用同样以点号打头的模式来匹配,这不同于 :func:`fnmatch.fnmatch` 或 "
61- ":func:`pathlib.Path.glob`。 对于波浪号和 shell 变量扩展,请使用 :func:`os.path.expanduser` "
62- "和 :func:`os.path.expandvars`。"
6360
6461#: ../../library/glob.rst:38
6562msgid ""
@@ -117,38 +114,38 @@ msgstr ""
117114
118115#: ../../library/glob.rst:73
119116msgid ""
120- "If *include_hidden* is true, \" ``**`` \" pattern will match hidden "
121- "directories ."
122- msgstr "如果 *include_hidden* 为真值, \" ``**`` \" 模式将匹配隐藏目录。 "
117+ "If *include_hidden* is true, wildcards can match path segments that begin "
118+ "with a dot (``.``) ."
119+ msgstr ""
123120
124- #: ../../library/glob.rst:75 ../../library/glob.rst:107
121+ #: ../../library/glob.rst:76 ../../library/glob.rst:108
125122msgid ""
126123"Raises an :ref:`auditing event <auditing>` ``glob.glob`` with arguments "
127124"``pathname``, ``recursive``."
128125msgstr ""
129126"引发一个 :ref:`审计事件 <auditing>` ``glob.glob`` 并附带参数 ``pathname``, ``recursive``。"
130127
131- #: ../../library/glob.rst:76 ../../library/glob.rst:108
128+ #: ../../library/glob.rst:77 ../../library/glob.rst:109
132129msgid ""
133130"Raises an :ref:`auditing event <auditing>` ``glob.glob/2`` with arguments "
134131"``pathname``, ``recursive``, ``root_dir``, ``dir_fd``."
135132msgstr ""
136133"引发一个 :ref:`审计事件 <auditing>` ``glob.glob/2`` 并附带参数 ``pathname``, "
137134"``recursive``, ``root_dir``, ``dir_fd``。"
138135
139- #: ../../library/glob.rst:79
136+ #: ../../library/glob.rst:80
140137msgid ""
141138"Using the \" ``**``\" pattern in large directory trees may consume an "
142139"inordinate amount of time."
143140msgstr "在一个较大的目录树中使用 \" ``**``\" 模式可能会消耗非常多的时间。"
144141
145- #: ../../library/glob.rst:83 ../../library/glob.rst:111
142+ #: ../../library/glob.rst:84 ../../library/glob.rst:112
146143msgid ""
147144"This function may return duplicate path names if *pathname* contains "
148145"multiple \" ``**``\" patterns and *recursive* is true."
149146msgstr "如果 *pathname* 包含多个 \" ``**``\" 模式并且 *recursive* 为真值则此函数可能返回重复的路径名。"
150147
151- #: ../../library/glob.rst:87 ../../library/glob.rst:115
148+ #: ../../library/glob.rst:88 ../../library/glob.rst:116
152149msgid ""
153150"Any :exc:`OSError` exceptions raised from scanning the filesystem are "
154151"suppressed. This includes :exc:`PermissionError` when accessing directories "
@@ -157,47 +154,44 @@ msgstr ""
157154"任何因扫描文件系统而引发的 :exc:`OSError` 异常都会被抑制。 这包括访问没有读取权限的目录时的 "
158155":exc:`PermissionError`。"
159156
160- #: ../../library/glob.rst:91 ../../library/glob.rst:119
157+ #: ../../library/glob.rst:92 ../../library/glob.rst:120
161158msgid "Support for recursive globs using \" ``**``\" ."
162159msgstr "支持使用 \" ``**``\" 的递归 glob。"
163160
164- #: ../../library/glob.rst:94 ../../library/glob.rst:122
161+ #: ../../library/glob.rst:95 ../../library/glob.rst:123
165162msgid "Added the *root_dir* and *dir_fd* parameters."
166163msgstr "添加了 *root_dir* 和 *dir_fd* 形参。"
167164
168- #: ../../library/glob.rst:97 ../../library/glob.rst:125
165+ #: ../../library/glob.rst:98 ../../library/glob.rst:126
169166msgid "Added the *include_hidden* parameter."
170167msgstr "增加了 *include_hidden* 形参。"
171168
172- #: ../../library/glob.rst:104
169+ #: ../../library/glob.rst:105
173170msgid ""
174171"Return an :term:`iterator` which yields the same values as :func:`glob` "
175172"without actually storing them all simultaneously."
176173msgstr "返回一个 :term:`iterator`,它会产生与 :func:`glob` 相同的结果,但不会实际地同时保存它们。"
177174
178- #: ../../library/glob.rst:131
175+ #: ../../library/glob.rst:132
179176msgid ""
180177"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful"
181178" if you want to match an arbitrary literal string that may have special "
182179"characters in it. Special characters in drive/UNC sharepoints are not "
183- "escaped, e.g. on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns "
180+ "escaped, for example on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns "
184181"``'//?/c:/Quo vadis[?].txt'``."
185182msgstr ""
186- "转义所有特殊字符 (``'?'``, ``'*'`` 和 ``'['``)。 这适用于当你想要匹配可能带有特殊字符的任意字符串字面值的情况。 在 "
187- "drive/UNC 共享点中的特殊字符不会被转义,例如在 Windows 上 ``escape('//?/c:/Quo vadis?.txt')`` "
188- "将返回 ``'//?/c:/Quo vadis[?].txt'``。"
189183
190- #: ../../library/glob.rst:142
184+ #: ../../library/glob.rst:143
191185msgid ""
192186"Convert the given path specification to a regular expression for use with "
193187":func:`re.match`. The path specification can contain shell-style wildcards."
194188msgstr "将给定的路径规格说明转换为一个正则表达式供 :func:`re.match` 使用。 路径规格说明可以包含 shell 风格的通配符。"
195189
196- #: ../../library/glob.rst:145
190+ #: ../../library/glob.rst:146
197191msgid "For example:"
198192msgstr "例如:"
199193
200- #: ../../library/glob.rst:156
194+ #: ../../library/glob.rst:157
201195msgid ""
202196"Path separators and segments are meaningful to this function, unlike "
203197":func:`fnmatch.translate`. By default wildcards do not match path "
@@ -206,39 +200,39 @@ msgstr ""
206200"路径分隔符与部件对该函数是有意义的,这与 :func:`fnmatch.translate` 不同。 在默认情况下通配符不会匹配路径分隔符,而 "
207201"``*`` 模式部件将精确匹配一个路径部件。"
208202
209- #: ../../library/glob.rst:160
203+ #: ../../library/glob.rst:161
210204msgid ""
211205"If *recursive* is true, the pattern segment \" ``**``\" will match any number"
212206" of path segments."
213207msgstr "如果 *recursive* 为真值,则模式部件 \" ``**``\" 将匹配任意数量的路径部件。"
214208
215- #: ../../library/glob.rst:163
209+ #: ../../library/glob.rst:164
216210msgid ""
217211"If *include_hidden* is true, wildcards can match path segments that start "
218212"with a dot (``.``)."
219213msgstr "如果 *include_hidden* 为真值,则通配符可以匹配以点号 (``.``) 打头的路径部件。"
220214
221- #: ../../library/glob.rst:166
215+ #: ../../library/glob.rst:167
222216msgid ""
223217"A sequence of path separators may be supplied to the *seps* argument. If not"
224218" given, :data:`os.sep` and :data:`~os.altsep` (if available) are used."
225219msgstr ""
226220"可以向 *seps* 参数提供一个由路径分隔符组成的序列。 如果未给出,则将使用 :data:`os.sep` 和 :data:`~os.altsep`"
227221" (如果可用)。"
228222
229- #: ../../library/glob.rst:171
223+ #: ../../library/glob.rst:172
230224msgid ""
231225":meth:`pathlib.PurePath.full_match` and :meth:`pathlib.Path.glob` methods, "
232226"which call this function to implement pattern matching and globbing."
233227msgstr ""
234228":meth:`pathlib.PurePath.full_match` 和 :meth:`pathlib.Path.glob` "
235229"方法,它们将调用此函数来实现模式匹配和 glob 操作。"
236230
237- #: ../../library/glob.rst:179
231+ #: ../../library/glob.rst:180
238232msgid "Examples"
239233msgstr "例子"
240234
241- #: ../../library/glob.rst:181
235+ #: ../../library/glob.rst:182
242236msgid ""
243237"Consider a directory containing the following files: :file:`1.gif`, "
244238":file:`2.txt`, :file:`card.gif` and a subdirectory :file:`sub` which "
@@ -250,7 +244,7 @@ msgstr ""
250244":file:`sub` 且其中只包含一个文件 :file:`3.txt`。 :func:`glob` 将产生如下结果。 "
251245"请注意路径的任何开头部件都将被保留。 ::"
252246
253- #: ../../library/glob.rst:187
247+ #: ../../library/glob.rst:188
254248msgid ""
255249">>> import glob\n"
256250">>> glob.glob('./[0-9].*')\n"
@@ -276,7 +270,7 @@ msgstr ""
276270">>> glob.glob('./**/', recursive=True)\n"
277271"['./', './sub/']"
278272
279- #: ../../library/glob.rst:199
273+ #: ../../library/glob.rst:200
280274msgid ""
281275"If the directory contains files starting with ``.`` they won't be matched by"
282276" default. For example, consider a directory containing :file:`card.gif` and "
@@ -285,7 +279,7 @@ msgstr ""
285279"如果目录包含以 ``.`` 打头的文件,它们默认将不会被匹配。 例如,考虑一个包含 :file:`card.gif` 和 "
286280":file:`.card.gif` 的目录::"
287281
288- #: ../../library/glob.rst:203
282+ #: ../../library/glob.rst:204
289283msgid ""
290284">>> import glob\n"
291285">>> glob.glob('*.gif')\n"
@@ -299,12 +293,12 @@ msgstr ""
299293">>> glob.glob('.c*')\n"
300294"['.card.gif']"
301295
302- #: ../../library/glob.rst:210
296+ #: ../../library/glob.rst:211
303297msgid ""
304298"The :mod:`fnmatch` module offers shell-style filename (not path) expansion."
305299msgstr ":mod:`fnmatch` 模块提供了 shell 风格的文件名(而非路径)扩展。"
306300
307- #: ../../library/glob.rst:213
301+ #: ../../library/glob.rst:214
308302msgid "The :mod:`pathlib` module offers high-level path objects."
309303msgstr ":mod:`pathlib` 模块提供高级路径对象。"
310304
0 commit comments