Python. IOError: [Errno 13] Permission denied: when i'm copying file

后端 未结 9 1320
轮回少年
轮回少年 2021-01-03 19:44

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:

>>>          


        
9条回答
  •  囚心锁ツ
    2021-01-03 19:56

    Read the docs:

    shutil.copyfile(src, dst)

    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.

提交回复
热议问题