首页 > 解决方案 > 第 21 行,在os.startfile(fileName) AttributeError: 模块 'os' 没有属性 'startfile'

问题描述

第 21 行,在 os.startfile(fileName) AttributeError: module 'os' has no attribute 'startfile'

在 Mac 上,每次发生这种情况

标签: pythonpython-requests

解决方案


就像文档明确指出的那样,os.startfile()仅适用于 Windows。


推荐阅读