我想移动一个文件,但我遇到了以下错误:
Traceback (most recent call last):
File "G:\Programming\Hack\scripts\# cut file.py", line 4, in <module>
shutil.move(src, dst)
File "C:\Program Files 1\Python2\lib\shutil.py", line 316, in move
copy2(src, real_dst)
File "C:\Program Files 1\Python2\lib\shutil.py", line 144, in copy2
copyfile(src, dst)
File "C:\Program Files 1\Python2\lib\shutil.py", line 97, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: 'E:\\windows.information.exe'
我的脚本:
import shutil
src = "C:\\Users\\Michael\\Desktop\\windows.information.exe"
dst = "E:\\"
shutil.move(src, dst)
我的主要问题:
IOError: [Errno 13] Permission denied: 'E:\\windows.information.exe