<legend id='ks0go'><style id='ks0go'><dir id='ks0go'><q id='ks0go'></q></dir></style></legend>

      <tfoot id='ks0go'></tfoot>

      <small id='ks0go'></small><noframes id='ks0go'>

      <i id='ks0go'><tr id='ks0go'><dt id='ks0go'><q id='ks0go'><span id='ks0go'><b id='ks0go'><form id='ks0go'><ins id='ks0go'></ins><ul id='ks0go'></ul><sub id='ks0go'></sub></form><legend id='ks0go'></legend><bdo id='ks0go'><pre id='ks0go'><center id='ks0go'></center></pre></bdo></b><th id='ks0go'></th></span></q></dt></tr></i><div id='ks0go'><tfoot id='ks0go'></tfoot><dl id='ks0go'><fieldset id='ks0go'></fieldset></dl></div>
        <bdo id='ks0go'></bdo><ul id='ks0go'></ul>
      1. Python.IOError:[Errno 13] 权限被拒绝:当我复制文件时

        Python. IOError: [Errno 13] Permission denied: when i#39;m copying file(Python.IOError:[Errno 13] 权限被拒绝:当我复制文件时)
              <tfoot id='nIwCE'></tfoot>
              <legend id='nIwCE'><style id='nIwCE'><dir id='nIwCE'><q id='nIwCE'></q></dir></style></legend>

              <i id='nIwCE'><tr id='nIwCE'><dt id='nIwCE'><q id='nIwCE'><span id='nIwCE'><b id='nIwCE'><form id='nIwCE'><ins id='nIwCE'></ins><ul id='nIwCE'></ul><sub id='nIwCE'></sub></form><legend id='nIwCE'></legend><bdo id='nIwCE'><pre id='nIwCE'><center id='nIwCE'></center></pre></bdo></b><th id='nIwCE'></th></span></q></dt></tr></i><div id='nIwCE'><tfoot id='nIwCE'></tfoot><dl id='nIwCE'><fieldset id='nIwCE'></fieldset></dl></div>

              <small id='nIwCE'></small><noframes id='nIwCE'>

                  <tbody id='nIwCE'></tbody>

                • <bdo id='nIwCE'></bdo><ul id='nIwCE'></ul>
                  本文介绍了Python.IOError:[Errno 13] 权限被拒绝:当我复制文件时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有两个文件夹:In、Out - 它不是磁盘 D 上的系统文件夹: - Windows 7.Out 包含myfile.txt" 我在 python 中运行以下命令:

                  I have two folders: In, Out - it is not system folder on disk D: - Windows 7. Out contain "myfile.txt" I run the following command in python:

                  >>> shutil.copyfile( r"d:Outmyfile.txt", r"D:In" )
                  
                  Traceback (most recent call last):
                    File "<pyshell#39>", line 1, in <module>
                      shutil.copyfile( r"d:Outmyfile.txt", r"D:In" )
                    File "C:Python27libshutil.py", line 82, in copyfile
                      with open(dst, 'wb') as fdst:
                  IOError: [Errno 13] Permission denied: 'D:\In'
                  

                  有什么问题?

                  推荐答案

                  阅读文档:

                  shutil.copyfile(src, dst)

                  将名为src的文件的内容(无元数据)复制到一个文件中命名为 dst.dst 必须是完整的目标文件名;看看 copy()对于接受目标目录路径的副本.

                  Copy the contents (no metadata) of the file named src to a file named dst. dst must be the complete target file name; look at copy() for a copy that accepts a target directory path.

                  这篇关于Python.IOError:[Errno 13] 权限被拒绝:当我复制文件时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pythonic and efficient way of finding adjacent cells in grid(在网格中查找相邻单元格的 Pythonic 和有效方法)
                  map a hexagonal grid in matplotlib(在 matplotlib 中映射六边形网格)
                  Execute arbitrary python code remotely - can it be done?(远程执行任意 python 代码 - 可以吗?)
                  Python - Plotting colored grid based on values(Python - 根据值绘制彩色网格)
                  Is there a GUI design app for the Tkinter / grid geometry?(是否有 Tkinter/网格几何图形的 GUI 设计应用程序?)
                  tkinter Canvas Scrollbar with Grid?(带有网格的 tkinter 画布滚动条?)

                      <tbody id='Q9o8z'></tbody>

                      • <bdo id='Q9o8z'></bdo><ul id='Q9o8z'></ul>
                          <i id='Q9o8z'><tr id='Q9o8z'><dt id='Q9o8z'><q id='Q9o8z'><span id='Q9o8z'><b id='Q9o8z'><form id='Q9o8z'><ins id='Q9o8z'></ins><ul id='Q9o8z'></ul><sub id='Q9o8z'></sub></form><legend id='Q9o8z'></legend><bdo id='Q9o8z'><pre id='Q9o8z'><center id='Q9o8z'></center></pre></bdo></b><th id='Q9o8z'></th></span></q></dt></tr></i><div id='Q9o8z'><tfoot id='Q9o8z'></tfoot><dl id='Q9o8z'><fieldset id='Q9o8z'></fieldset></dl></div>
                          1. <legend id='Q9o8z'><style id='Q9o8z'><dir id='Q9o8z'><q id='Q9o8z'></q></dir></style></legend>
                            <tfoot id='Q9o8z'></tfoot>

                            <small id='Q9o8z'></small><noframes id='Q9o8z'>