使用shutil.move函数可以将指定的文件或文件夹移动到目标路径下,返回值是移动后的文件绝对路径字符串。 import shutil shutil.move('D:\\test\\a\dog.txt ...
確定! 回上一頁