大佬教程收集整理的这篇文章主要介绍了Linux上的Python中不存在os.O_EXLOCK(独占锁),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Python 2.6.5 (r265:79063,Apr 9 2010,11:16:46) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "Help","copyright","credits" or "license" for more information. >>> import os >>> os.O_EXLOCK TraceBACk (most recent call last): File "<stdin>",line 1,in <module> AttributeError: 'module' object has no attribute 'O_EXLOCK' >>> os.O_DSYNC 4096 >>>
O_EXLOCK originated in the BSD world;它通常不适用于Linux.您也许可以使用Python fcntl
module.
以上是大佬教程为你收集整理的Linux上的Python中不存在os.O_EXLOCK(独占锁)全部内容,希望文章能够帮你解决Linux上的Python中不存在os.O_EXLOCK(独占锁)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。