我正在尝试创建一个程序,将所有图片从我的reddit文件夹传输到PC上的大容量存储中,但是python似乎找不到这些文件。
尝试:
import shutil, os
reddit = "This PC\GM1911\Internal shared storage\Pictures\Reddit"
m_stor = "E:\memes"
files = os.listdir(path="This PC\GM1911\Internal shared storage\Pictures\Reddit")
for f in files:
src = reddit+"\\"+f
dst = m_stor+"\\"+f
shutil.move(src,dst)
错误:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'This PC\\GM1911\\Internal shared storage\\Pictures\\Reddit'