import yamlimport osimport shutildef copyHistorySession():source_path5048 = r'D:\sourse'target_path5048 = r'D:\target'if not os.path.exists(target_path5048):# 如果⽬标路径不存在原⽂件夹的话就创建os.makedirs(target_path5048)if os.path.exists(source_path5048):# 如果⽬标路径存在原⽂件夹的话就先删除shutil.rmtree(target_path5048)shutil.copytree(source_path5048, target_path5048)print('copy 5048 History Session finished!')
700字范文,内容丰富有趣,生活中的好帮手!