AttributeError: module ‘fcntl‘ has no attribute ‘F_GETFL‘ 问题描述 解决方案 方案一 方案二 参考文献 问题描述 报错:AttributeError: module ‘fcntl’ has no attribute ‘F_GETFL’ 解决方案 方案一 备份 Python36\Lib 中的 fcntl.py ,如 fcntl_ex.py 新建 fcntl.py DN_ACCESS = 1 DN_ATTRIB = 32 DN_CREATE = 4 DN_DELETE = 8 DN_MODIFY = 2 DN_MULTISHOT =