📅  最后修改于: 2022-03-11 14:57:26.105000             🧑  作者: 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}"')