Skip to content

Commit f3288cf

Browse files
authored
翻译了未翻译的部分
1 parent 0bb908f commit f3288cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/c13/p07_copy_move_files_and_directories.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@
5454
5555
shutil.copytree(src, dst, ignore=ignore_pyc_files)
5656
57-
Since ignoring filename patterns is common, a utility function ignore_patterns() has
58-
already been provided to do it. For example:
57+
由于忽略某种模式的文件名是很常见的,因此一个便捷的函数 ``ignore_patterns()`` 已经包含在里面了。例如:
5958

60-
shutil.copytree(src, dst, ignore=shutil.ignore_patterns('*~','*.pyc'))
59+
.. code-block:: python
60+
61+
shutil.copytree(src, dst, ignore=shutil.ignore_patterns('*~', '*.pyc'))
6162
6263
----------
6364
讨论

0 commit comments

Comments
 (0)