linux.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:python-ioctl 作者: olavmrk 项目源码 文件源码
def _ioc_type_size(size):
    if isinstance(size, type) and issubclass(size, ctypes._SimpleCData):
        return ctypes.sizeof(size)
    elif isinstance(size, int):
        return size
    else:
        raise TypeError('Invalid type for size: {size_type}'.format(size_type=size.__class__.__name__))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号