Traceback (most recent call last): File "E:\Python3.7\lib\shutil.py", line 566, in move os.rename(src, real_dst) PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'D:/study/python/1001/test.word' -> 'D:/code/test.word'
多半打开了啥,没有close
Traceback (most recent call last): File "E:\Python3.7\lib\shutil.py", line 566, in move os.rename(src, real_dst) PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'D:/study/python/1001/test.word' -> 'D:/code/test.word' During handling of the above exception, another exception occurred:
多半是要操作的文件打开了,比如word,txt啥的
Traceback (most recent call last): File "E:\Python3.7\lib\shutil.py", line 566, in move os.rename(src, real_dst) FileNotFoundError: [WinError 2] 系统找不到指定的文件
这种是要移动的路径不存在,如果用了shutil.move的话哈