📅  最后修改于: 2022-03-11 14:47:00.929000             🧑  作者: Mango
import os
from pathlib import Path
# opening EXCEL through Code
#local path in dir
absolutePath = Path('../excel.xlsx').resolve()
os.system(f'start excel.exe "{absolutePath}"')