在Python中,可以使用shutil模块来复制文件到指定文件夹。下面是一个示例代码:
import shutil # 源文件路径 source_file = "/path/to/source/file.txt" # 目标文件夹路径 destination_folder = "/path/to/destination/folder/" # 复制文件到目标文件夹 shutil.copy(source_file, destination_folder)
在上面的示例中,你需要将/path/to/source/file.txt
替换为源文件的实际路径,并将/path/to/destination/folder/
替换为目标文件夹的实际路径。