030 移动并重命名工作表
from pathlib import Path
old_file_path = Path(r'D:\python\111.xlsx')
new_file_path = Path(r'D:\python_file\receiving.xlsx')
old_file_path.rename(new_file_path)
移动与重命名Excel文件
030 移动并重命名工作表
from pathlib import Path
old_file_path = Path(r'D:\python\111.xlsx')
new_file_path = Path(r'D:\python_file\receiving.xlsx')
old_file_path.rename(new_file_path)

被折叠的 条评论
为什么被折叠?