import shutil #shutil.copytree("E:\自动化办公","E:\练习1") shutil.copytree("E:\自动化办公","E:\练习1\自动化办公") #复制"自动化办公"这个文件夹到"E:\练习1"文件夹下.