2025年8月29日 星期五

[python]pip install fcntl (Win10)

建立一個 fcntl.py文件,
並將其存放Python的安装路徑Lib目錄下,

C:\Users\[name]\AppData\Local\Programs\Python\Python311\Lib


fcntl.py

=============================
def fcntl(fd, op, arg=0):
    return 0

def ioctl(fd, op, arg=0, mutable_flag=True):
    if mutable_flag:
        return 0
    else:
        return ""

def flock(fd, op):
    return

def lockf(fd, operation, length=0, start=0, whence=0):
    return
=============================

沒有留言:

張貼留言

Asterisk & FreePBX Feature Codes

Asterisk & FreePBX Feature Codes Feature Codes enable you to control what happens to your phone extension and calls to it and voicemail....