Python. IOError: [Errno 13] Permission denied: when i'm copying file Python。IOError:[Errno 13] 权限被拒绝:当我复制文件时

13 浏览
0 Comments

Python. IOError: [Errno 13] Permission denied: when i'm copying file Python。IOError:[Errno 13] 权限被拒绝:当我复制文件时

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

>>>> shutil.copyfile( r"d:\Out\myfile.txt", r"D:\In" )
Traceback (most recent call last):
  File "", line 1, in 
    shutil.copyfile( r"d:\Out\myfile.txt", r"D:\In" )
  File "C:\Python27\lib\shutil.py", line 82, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: 'D:\\In'

问题是什么?

0