import os file = r'----文件路径----' os.system(f'explorer /select, "{file}') 程序员灯塔 转载请注明原文链接:Python 实现用Windows文件资源管理器打开文件并选中 喜欢 (0)