【发布时间】:2013-08-14 12:02:21
【问题描述】:
下面一行:
except (IOError, PermissionError, FileNotFoundError) as e:
当我使用 python 2.75 运行它时给出以下错误消息:
NameError: global name 'PermissionError' is not defined
但是使用 python 3.3 一切运行良好。
想法/建议?
【问题讨论】:
标签: python-3.x permissions python-2.x nameerror