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

后端 未结 9 1411
轮回少年
轮回少年 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

    use shutil.copy instead of shutil.copyfile

    example:

    shutil.copy(PathOf_SourceFileName.extension,TargetFolderPath)
    

提交回复
热议问题