Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
C 结构体的 Python ctypes 定义
我正在尝试调用 Matlab 编码器生成的一些 C 代码 Matlab 使用名为 emxArray 的 C 结构体来表示矩阵 记录如下 http www mathworks co uk help fixedpoint ug c code i
python
ctypes
matlabcoder
在python中使用tesseract 3.02的C API与ctypes和cv2
我正在尝试在 python 中将 Tesseract 3 02 与 ctypes 和 cv2 一起使用 Tesseract 提供了一组公开的 DLL C 风格 API 其中之一如下 TESS API void TESS CALL TessB
python
opencv
ctypes
Tesseract
Python ctypes 指向结构体指针的指针
我在获取指向工作结构的指针时遇到问题 这是我抛出异常 ArgumentError 参数 1 预期 LP LP List 实例而不是指向 LP LP List 的指针 的代码 class List Structure fields head
python
ctypes
ctypes 包装“MessageBoxA”示例在 python33 中不起作用
此示例位于 python 3 3 2 文档中 http docs python org 3 library ctypes html highlight ctypes ctypes http docs python org 3 library
python
ctypes
python ctypes - 传递 numpy 数组 - 奇数输出
我正在使用 ctypes 并将 ndarray 传递给 c 函数 它给了我一个奇怪的输出行为 这是一些代码 C 功能 int foo int foo int N for int i 0 i
python
NumPy
ctypes
使用 IOCTL_DISK_SET_DRIVE_LAYOUT 创建分区后,如何在这个新创建的分区中创建新卷?
我正在尝试创建一个新分区 对其进行格式化并通过 Python ctypes 为其分配一个新的驱动器号 使用IOCTL SET DRIVE LAYOUT http msdn microsoft com en us library window
python
ctypes
ioctl
访问 ctypes 结构中的 np.array
我有一个带有动态分配数组的 ctypes 结构 即 array 1d double npct ndpointer dtype np double ndim 1 flags CONTIGUOUS class Test Structure fi
python
NumPy
ctypes
直接在Scipy稀疏矩阵上使用Intel mkl库以更少的内存计算A点A.T
我想打电话mkl mkl scsrmultcsr https software intel com en us node 468640来自蟒蛇 目标是计算稀疏矩阵 C压缩稀疏行 http docs scipy org doc scipy 0
python
scipy
ctypes
sparsematrix
intelmkl
使用 ctypes 从 python 调用 C 函数
我有以下 C 代码 我正在尝试使用Python从Python调用这个函数ctypes int add int arr printf number d n arr 0 arr 0 1 return arr 0 我用以下方法编译了这个 gcc
python
c
Call
Wrapper
ctypes
使用 COM 对象的 Python ctypes 和 DLL
在 Windows 下 我尝试使用第 3 方 DLL SomeLib dll 使用 Python 2 7 用 C 编程ctypes 对于其某些功能 该库使用另一个 COM DLL SomeCOMlib dll 它本身使用其他DLL LibA
python
dll
com
ctypes
使用 IntEnum 作为 ctypes.Structure._fields_ 中的类型
我想成为我的领域之一ctypes Structure一个枚举 这post http www chriskrycho com 2015 ctypes structures and dll exports html建议添加一个from para
python
enums
ctypes
Ctypes 在使用 CMake 创建的共享库中找不到符号
我在 linux 中创建共享库的 CMake 设置类似于 SET CMAKE CXX FLAGS fPIC SET LIB UTILS SRC Utils cpp ADD LIBRARY UTILS SHARED LIB UTILS SRC
c
python
CMake
ctypes
Python ctypes:带有 LPCSTR [out] 参数的原型
我目前正在进入ctypes模块 我正在尝试调用 user32 函数GetWindowText http msdn microsoft com en us library windows desktop ms633520 28v vs 85
python
WINAPI
prototype
ctypes
user32
使用 ctypes/cffi 解决循环共享对象依赖关系
我想用cffi 甚至ctypes如果我必须 从 Linux 上的 Python 3 访问 C ABI 该API由许多实现 so文件 我们称它们为libA so libB so and libC so 这样libA包含主要导出函数 其他库提供
python
ctypes
circulardependency
dlopen
pythoncffi
通过 Ctypes 将 std:vector 从 C++ 传递到 Python:获取无意义的值
我试图遵循程序 https stackoverflow com a 14887649 8408902但我被困住了 我正在尝试通过std vector来自我的 C 代码 包含在extern C 到Python 这就是我所拥有的 extern
python
c
ctypes
从 Python (ctypes) 到 C 的指针以保存函数输出
我是 Python 中 C 集成的新手 我目前正在将 dll 库包装到我的 Python 代码中 使用ctypes我在传递指针来保存特定函数的输出时遇到问题 我的 C 函数具有以下结构 function int w int h 无符号短 d
python3x
ctypes
如何访问作为 numpy 数组传递给 ctypes 回调的数组?
我正在尝试使用 numpy 和 ctypes 将一些用 C 编写的数字代码集成到 Python 库中 我已经开始进行实际计算 但现在想将算法中间步骤的进度报告给 Python 代码中的回调函数 虽然我可以成功调用回调函数 但无法检索x数组传
python
NumPy
ctypes
多处理.RawArray 操作
我读到了RawArray可以在进程之间共享而无需复制 并且想了解它在Python中是如何实现的 我看到在共享ctypes py https github com python cpython blob master Lib multipro
python3x
multiprocessing
ctypes
mmap
如何将具有多个依赖项的 C 库编译到 Python 包中? Cmake?
我在 python3 x 中有一个 Python 包 我一直在编写它 它与 C 库中的两个 C 函数交互 目前 我一直在使用ctypes我直接链接到共享库 so 然后使用 python 脚本与之交互 https docs python or
python
python3x
pip
ctypes
pythonpackaging
Python Ctypes Null 终止字符串块
我正在使用 ctypes 实现使用登录创建进程 http msdn microsoft com en us library ms682429 aspx 一切正常 除了我不知道如何处理这一部分 指向新进程的环境块的指针 如果该参数为NULL
python
ctypes
1
2
3
4
5
6
...9
»