<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] 权限被拒绝:当我复制文件时

        时间:2023-07-23
              <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] 权限被拒绝:当我复制文件时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:没有 PIL 的 Python windows 7 屏幕截图 下一篇:PIL 图像显示()在 Windows 7 上不起作用

                  相关文章

                  • <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'>