python 复制文件 n.txt 到指定目录 c:\users\desktop
#如果文件是在当前目录,那么file_path=r"n.txt"
#加个r表示后面的看做是字符串,而不是什么转义字符之类的
import shutil
file_path=r"D:\n.txt"
dst_path=r"c:\users\desktop"
shutil.copy(file_path,dst_path)
python 复制文件 n.txt 到指定目录 c:\users\desktop
#如果文件是在当前目录,那么file_path=r"n.txt"
#加个r表示后面的看做是字符串,而不是什么转义字符之类的
import shutil
file_path=r"D:\n.txt"
dst_path=r"c:\users\desktop"
shutil.copy(file_path,dst_path)